is a class, you cannot use ref adornments (in C #: Classes are placed by default in the heap, and structs are placed by default on the stack).1.1.5 string and string buffersThere are two different string representations in Win32: ANSI, Unicode. Because P/invoke designers don't want you to worry about your platform, they provide built-in support to automatically use A or W version. If the function you call does not exist, the
C # office programming -- word Error Type: "Microsoft. Office. InterOP. Word cannot be found"
Today, I used C # To write an application such as searching for the specified text in word. The compilation result is incorrect:"Cocould not load file or assembly 'Microsoft. Office. InterOP. Word, version = 11.0.0.0, culture
Cocould not load file or assembly 'Microsoft. Office. Interop. Excel, Version = 11.0.0.0, Culture = neutral, PublicKeyToken = 71e9bce111e9429c' or one of its dependencies.
There are two reasons for this problem:
1. "Excel 2003" is not installed in the system ";
2. "Excel 2003" is installed in the system, but it is not installed in GAC. (For details about GAC Global Assembly Cache, refer to the MSDN help .)
First of all, if the problem occurs due to th
main form, you construct the subform as a parameter, so that the parent form is called in the subform, and you can use "This.pparentwin" directly.However, just so that you can access the current main form object, then how to manipulate the control, many people directly modify the control's member accessors, that is, "private" to "public", I think this destroys the encapsulation of its own class, so I prefer to increase the public property or method to call , such as: public string ButtonText{
"Could not load file or assembly ' Microsoft.Office.Interop.Word, version=11.0.0.0, Culture=neutral, publickeytoken= 71e9bce111e9429c ' or one of its dependencies.
It means "the system cannot find the file or assembly" Microsoft.Office.Interop.Word, version=11.0.0.0, Culture=neutral, publickeytoken= 71e9bce111e9429c ' or a part of it. "Method to add a reference:
2, cannot embed interop type "Microsoft.Office.Interop.Word.ApplicationClass". Use the
. office applications and components are accessible fromComTab OfAdd referenceDialog box.
If the primary InterOP assembly is not installed in the Global Assembly Cache, Visual Studio generates an InterOP assembly for the project that might not work fully in all cases. for more information, see troubleshooting in office at run time.
Note
Some assemblies are added to a project autom
Use Microsoft. Office. Interop. Excel to convert web pages into PDF, interop. excel. dll
There are many ways to convert Web pages into PDF files on the Internet, and there are also many third-party plug-ins that charge fees. In fact, you can use the built-in function of publishing EXCEL to PDF. If your requirements are not complex, you can use the author's method.
First, save the web page html as an EXCEL f
The interoperability type "Microsoft. Office. Interop. Excel. ApplicationClass" cannot be embedded ". Use the applicable interface, interop. excelSolution
Change the embedded interoperability type of Microsoft. Office. Interop. Excel. DLL to true.
The type of MicrosoftOfficeInteropExcelApplicationClass cannot be implicitly converted to ExcelApplicationClass
Failed to Load file or assembly "Interop. SQLDMO" or one of its dependencies, loading interop. sqldmo
The program runs normally. After IIS is configured, the following error message is displayed when you open the Installation Wizard:
Solution: "enable 32-bit applications" in the IIS application pool ",
1. Open the IIS application pool, select the corresponding application pool, and click "Advanced Sett
When ASP. NET operates Word documents,This problem occurs, and word is not installed on the machine,
"Word 2003" is installed in the system, but it is not installed in GAC. (About GAC globalProgramFor details about the set cache, refer to the msdn help .)
First of all, if the problem occurs due to the first reason, it is best to solve the problem, that is, install Microsoft Word 2003.
In addition, it is caused by the second reason. There may also be two possible causes: one is to install i
, fundamental Terms), the interoperability is defined as follows: " The ability to communicate, execute programs, or transmit data between these functional units with little or no user knowledge of the unique characteristics of various functional units ". The above two paragraphs are Wikipedia's interpretation of "interoperability," which gives us a basic concept of "embedding interop Types".Then let's talk about "embedding
name represent the same com type.
Obtaining and releasing a reference to a running COM object is just like obtaining and releasing a reference to any other running managed object. when. net Framework clients obtain and release a reference to a COM object, the runtime maintains the reference count on the COM object just as any other COM Client wocould, and. net Framework clients can behave as if the object were subject to garbage collection, just as they wocould for any other managed Server Obj
(the level is limited, do not know exactly what the translation is, here is not detailed. ) The other is ccw,com callable wrapper. The latter, will be discussed in the following related articles, here is no longer to repeat, this article is mainly concerned about the former. The RCW is obtained at run time through a dynamic instantiation of the relevant information from the CLR's metadata in the interop assembly (
Recently, I have seen some basic InterOP problems on the Forum, giving me the motivation to write the previous. Net InterOP getting started series, and giving my friends who have just been involved in. Net InterOP a general concept.
Every time I talk about. Net InterOP, the following figure is always displayed in my mi
this file on a CD. For details, see msdn.Run the command line (CMD) to enter the bin directory and run tlbimp/out: InterOP. Excel. dll officeinstallation directory +excel.exe.
In this case, the following error may be reported: tlbimp error: unable to locate input Type Library: 'C: \ Program Files \ mcrosoft offi.Ce \ Office \ excel. EXE'Copy the notebook to the bin directory and run tlbimp/out:
bindirectory of your Visual Studio sdkand find the tlbimp.exe file. If not, install this file on a CD. For details, see msdn.Run the command line (CMD) to enter the bin directory and run tlbimp/out: InterOP. Excel. dll officeinstallation directory +excel.exe.
At this time, the following error may be reported: tlbimp error: unable to locate input Type Library: 'C:/program files/mcrosoft offi.Ce/office/Excel
resolved for the following reasons:
"Excel 2003" is installed in the system, but it is not installed in GAC. (For details about GAC Global Assembly Cache, refer to the msdn help .) There may be two possible causes: one is that the installation is performed in the office.. NET Framework is installed before, and the other is missing the ".. Net programmable support ". In step 2, we will install Office 5th PIA (Master InterOP Assembly) to GAC. We can se
On the PDC, Misha shneerson and Andrew Whitechapel's session: under the hood: advances in. net Type System. the new feature of InterOP in net 4.0: Type equivalency, which we call no PIA (primary InterOP assembly) internally ). This feature was jointly completed by the VB/C #/InterOP team. It can be said that it was one
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.