Word compatibility
-
Hello Im writing a Word application that shall be used on machines with Office 2003 or later versions. On the developer machine I have Office 2007. Im having trouble creating the application so that it works on the test PC witch is using Office 2003. Can anybody help me with a solution on how to use a assembly from Office 2003 in my project... C# :) Thanx Spaz
-
Hello Im writing a Word application that shall be used on machines with Office 2003 or later versions. On the developer machine I have Office 2007. Im having trouble creating the application so that it works on the test PC witch is using Office 2003. Can anybody help me with a solution on how to use a assembly from Office 2003 in my project... C# :) Thanx Spaz
Hi .Net framework itself provided you with Word library (In reference COM Tab you can see Microsoft Word Object Library) this should help out you to work around Word applications. Thanks
-
Hi .Net framework itself provided you with Word library (In reference COM Tab you can see Microsoft Word Object Library) this should help out you to work around Word applications. Thanks
Thanks for the reply The Word Library only contain version 12, witch is Office 2007. If I compile my application with that library and deploy it on a machine with Office 2003 I get this error: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) So I need a way to compile my application with Microsoft.Office.Interop.Word, Version=11.0.0.0 Thanx Spaz
-
Thanks for the reply The Word Library only contain version 12, witch is Office 2007. If I compile my application with that library and deploy it on a machine with Office 2003 I get this error: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) So I need a way to compile my application with Microsoft.Office.Interop.Word, Version=11.0.0.0 Thanx Spaz
OK., when you add the reference into your project you will see some DLLs like WORD VBIDE MICROSOFT.Office.Core While you create setup you need add that library as part your setup and there you will see one DLL called MSO.DDL go to the properties and in Register Property select "vsdrfCOM" and build your setup. This you no need to have any MS Office at your deployment PC. Please let me know if you havve any hiccup. Thanks Siva
-
OK., when you add the reference into your project you will see some DLLs like WORD VBIDE MICROSOFT.Office.Core While you create setup you need add that library as part your setup and there you will see one DLL called MSO.DDL go to the properties and in Register Property select "vsdrfCOM" and build your setup. This you no need to have any MS Office at your deployment PC. Please let me know if you havve any hiccup. Thanks Siva
Hello Thanx for the help, im a bit in the blue here... I did what you sad, importet the reference, created a new setup project. Changed the setting under register property to "vsdrfCOM". But when I try to run it on the deplyment PC I get this error: "Unable to cast COM object of type 'Microsoft.Office.Interop.Word.ApplicationClass' to interface type 'Microsoft.Office.Interop.Word._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00020970-0000-0000-C000-000000000046}' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))" Any ide what could be wrong? Thanx Spaz