Server Side Printing.

V

V.Balaji

Hi Friends,

I am trying to print word document in the server using vb.net and we are using following code to do so.

Dim WordApp As New Word.Application
WordApp.Documents.Open(strFullPath, , , , , , , , , , , , , , )
WordApp.Documents(1).PrintOut(, , , , , , , bv_CopiesNum, , , False, , bv_PrinterName, False, False, False, False, False)
WordApp.Documents(1).Close()
WordApp.Application.Quit()

Here the problem is sometime when the system is restarted this donsen't work and we get exception from the word.exe as

"Word cannot print. There is no printer installed"

Any workaround or solution is highly appricated.

Thanks in advance.

Regards,
V.Balaji
iInterchange Systems Pvt. Ltd.,
Chennai | Tamil Nadu | India.
 
T

Thorsten

--> "print word document in the server"
What is you application context ? Are you trying to print from ASP.net or
from Windows service ?

You should know, that the installed printers are user specific; so you need
to make sure, that the user under which you are working has a printer
installed.
 

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

Top