Printing Word document problem

Y

Youss33

I have a problem printing a word document from an ASP.NET application.

the Application doesn't send an error back but the document is not printed and the document is kept open by the application (I can't kill the winword procees: access denied).
her is the code i use:

oWordApp = New Word.ApplicationClass
oWordDoc = oWordApp.Documents.Add("d:\\coucou2.doc")
oWordDoc.Activate()
oWordDoc.PrintOut()
oWordDoc.Close()
oWordApp.Quit()

What is going wrong?

thanks for helping me out there.

Youss
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top