Access Denied Word.application instanitation


Hi there guys I have a little bit of a problem.

In a classic n-tier application that I wrote, I was firing up word and populating a template with info from a database.

To instaniate the word application object I would put (in a vb component)

I include a referece to word

In a function within the component I place the following code.

Dim m_objApp as Word.application
Set m_objApp = New Word.application

Everything works fine.


I want to achieve the same thing in .net

I again have a component

I include a reference to word

In a function within the component I place the following code.

Dim m_objApp as Word.application
Set m_objApp = New Word.application

I am present with an Enter Network Password popup.

If I cancel this then I am presented with an access is denied error.

I have no idea why, has anyone else.

James
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories