Patrice
7/8/2008 12:24:00 PM
What kind of server application is this ? ASP.NET ? Does it happen when no session is opened server side ?
You could install a printer in the default profile (the problem being that there is no printer installed for the service account you are likely using, if I remember the profile is not even loaded for this account, it is created from the default user profile so adding a printer there could solve the problem). I don't find the KB article right now.
AFAIK this is really not recommended (for example if the doc is marked with read only suggested, it will raise a dialog that will block furhter operations). You may want to give the big picture for alternate sugestiosn (for example AFAIK you can expose printers using http so that a user could print from its pc over internet on your printer). If this is to convert to another format such as PDF one could sugegst an alternate soltuino etc...
--
Patrice
"V.Balaji" <vba@iinterchange.com> a écrit dans le message de groupe de discussion : eDpgKzO4IHA.4908@TK2MSFTNGP04.phx.gbl...
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.