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

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top