Issues in Word Automation [modified]
-
I am using Visual Studio .NET 2003 to develop the application. My issue is that i had to generate a Word Report with password from an ASP.NET web application. After much try i got the dll Microsoft Word 11.0 Object Library and with the help of which i could generate a word document with password from a trial application. When i tried to implement the same in our project, it was giving an error as 'Could not open Macro Storage'. The error code was 2146822307. While checked up with the windows task manager it was taking a lot of memory. When performed a search with this, i came to know the necessity of configuring the Word application with DCOMCNFG - as setting the word to be run under interactive user mode etc. But that is very risky as listed in the links, http://support.microsoft.com/kb/q288366/ -- (Explains how to configure with DCOMCNFG) http://support.microsoft.com/kb/257757/ Can any body tell me how to solve this without using DCOMCNFG ? Or at the least is there any solutions to overcome the security issues... Your suggestions might be of great value.... If anybody comes across any link or any thing please do reply .... I will be very grateful... Om -- modified at 4:33 Thursday 15th March, 2007
-
I am using Visual Studio .NET 2003 to develop the application. My issue is that i had to generate a Word Report with password from an ASP.NET web application. After much try i got the dll Microsoft Word 11.0 Object Library and with the help of which i could generate a word document with password from a trial application. When i tried to implement the same in our project, it was giving an error as 'Could not open Macro Storage'. The error code was 2146822307. While checked up with the windows task manager it was taking a lot of memory. When performed a search with this, i came to know the necessity of configuring the Word application with DCOMCNFG - as setting the word to be run under interactive user mode etc. But that is very risky as listed in the links, http://support.microsoft.com/kb/q288366/ -- (Explains how to configure with DCOMCNFG) http://support.microsoft.com/kb/257757/ Can any body tell me how to solve this without using DCOMCNFG ? Or at the least is there any solutions to overcome the security issues... Your suggestions might be of great value.... If anybody comes across any link or any thing please do reply .... I will be very grateful... Om -- modified at 4:33 Thursday 15th March, 2007
I have discussed this over here: http://lavanyadeepak.blogspot.com/2007/03/office-automation-for-aspnet.html[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips