Pregunta

I am using a word automation class on an aspx page to open and edit a word file. The problem is that every time the code hits the open application line, i get the following error:

Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

I have looked around a lot for this issue and have tried the DCOMCONFIG settings. The problem is, the Microsoft Word Application setting does not exist under my computer. Is there any way to fix this most frustrating issue? Or is there another way to do this word automation without using word iterop?

¿Fue útil?

Solución

Take a look at this http://docx.codeplex.com/

Otros consejos

Not even Microsoft recommends using Office Automation in ASP.net (see this MSDN reference).

You might want to do some more searching here on SO. You could use the OOXML library, found here. There is also (not free) Aspose.words.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top