Patrice
Tue Jul 08 08:06:12 CDT 2008
Ce message est composé et au format MIME.
------=_NextPart_000_0015_01C8E10C.28F0B560
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
So the user asks to print a document in an application which then copy =
the file to a folder where a service gets the file and prints it server =
side ?
Couldn't the application directy print the file on a network printer ? =
Is this a problem to expose those printers on your network ?
Else if you still follow the the KB article I was thinking about is :
http://support.microsoft.com/kb/184291/en-us (it shows add to add =
pritner tot the default account so that a service account have those =
printers)
--
Patrice
"V.Balaji" <vba@iinterchange.com> a =E9crit dans le message de groupe =
de discussion : uc2UAmP4IHA.4988@TK2MSFTNGP04.phx.gbl...
Hi Patrice,
Thanks for immediate reply, This is a service written in vb.net which =
takes the document from a folder in server and prints it. This is from =
an application when the users give print it takes the file and print =
from the server. Printers are installed in server.
Thanks and Regards,
Regards,
V.Balaji
iInterchange Systems Pvt. Ltd.,
Chennai | Tamil Nadu | India.
"Patrice" <
http://www.chez.com/scribe/> wrote in message =
news:5F26DDF8-AEFE-4E68-9421-32CD41B86428@microsoft.com...
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 =E9crit 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=20
"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.
------=_NextPart_000_0015_01C8E10C.28F0B560
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3Diso-8859-1>
<META content=3D"MSHTML 6.00.2900.3354" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY id=3DMailContainerBody=20
style=3D"PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px"=20
bgColor=3D#ffffff leftMargin=3D0 topMargin=3D0 CanvasTabStop=3D"true"=20
name=3D"Compose message area">
<DIV><FONT face=3DArial size=3D2>So the user asks to print a document in =
an=20
application which then copy the file to a folder where a service gets =
the file=20
and prints it server side ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Couldn't the application directy print =
the file on=20
a network printer ? Is this a problem to expose those printers on your =
network=20
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Else if you still follow =
the the KB=20
article I was thinking about is :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"
http://support.microsoft.com/kb/184291/en-us">http://support.micr=
osoft.com/kb/184291/en-us</A> (it=20
shows add to add pritner tot the default account so that a service =
account have=20
those printers)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>--</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Patrice</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"V.Balaji" <<A=20
title=3D"mailto:vba@iinterchange.com CTRL + Cliquez ici pour =
suivre le lien"=20
href=3D"mailto:vba@iinterchange.com">vba@iinterchange.com</A>> a =
=E9crit dans=20
le message de groupe de discussion : <A=20
title=3D"mailto:uc2UAmP4IHA.4988@TK2MSFTNGP04.phx.gbl CTRL + =
Cliquez ici pour suivre le lien"=20
=
href=3D"mailto:uc2UAmP4IHA.4988@TK2MSFTNGP04.phx.gbl">uc2UAmP4IHA.4988@TK=
2MSFTNGP04.phx.gbl</A>...</DIV>
<DIV><FONT face=3DVerdana size=3D2>Hi Patrice,</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Thanks for immediate reply, =
This is a=20
service written in vb.net which takes the document from a folder =
in=20
server and prints it. This is from an application when the users =
give=20
print it takes the file and print from the server. Printers are =
installed in=20
server.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Thanks and Regards,</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>
<DIV><FONT face=3DVerdana size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DVerdana color=3D#800080=20
size=3D2><STRONG>V.Balaji</STRONG></FONT></DIV>
<DIV><FONT face=3DVerdana color=3D#800080 =
size=3D2><STRONG>iInterchange Systems Pvt.=20
Ltd.,</STRONG></FONT></DIV>
<DIV><FONT face=3DVerdana color=3D#800080 size=3D2><STRONG>Chennai | =
Tamil Nadu |=20
India.</STRONG></FONT></DIV></FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Patrice" <<A=20
=
href=3D"
http://www.chez.com/scribe/">http://www.chez.com/scribe/</A>> =
wrote=20
in message <A=20
=
title=3D"news:5F26DDF8-AEFE-4E68-9421-32CD41B86428@microsoft.com CTRL=
+ Cliquez ici pour suivre le lien"=20
=
href=3D"news:5F26DDF8-AEFE-4E68-9421-32CD41B86428@microsoft.com">news:5F2=
6DDF8-AEFE-4E68-9421-32CD41B86428@microsoft.com</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>What kind of server application is =
this ?=20
ASP.NET ? Does it happen when no session is opened server side=20
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>You could install a printer in the =
default=20
profile (the problem being that there is no printer installed for =
the=20
service account you are likely using, if I remember the profile is =
not even=20
loaded for this account, it is created from the default user profile =
so=20
adding a printer there could solve the problem). I don't find the KB =
article=20
right now.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>AFAIK this is really not =
recommended (for=20
example if the doc is marked with read only suggested, it will raise =
a=20
dialog that will block furhter operations). You may want to give the =
big=20
picture for alternate sugestiosn (for example AFAIK you =
can expose=20
printers using http so that a user could print from its pc over =
internet on=20
your printer). If this is to convert to another format such as PDF =
one could=20
sugegst an alternate soltuino etc...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>--</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Patrice</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"V.Balaji" <<A=20
href=3D"mailto:vba@iinterchange.com">vba@iinterchange.com</A>> =
a =E9crit=20
dans le message de groupe de discussion : <A=20
title=3D"mailto:eDpgKzO4IHA.4908@TK2MSFTNGP04.phx.gbl CTRL + =
Cliquez ici pour suivre le lien"=20
=
href=3D"mailto:eDpgKzO4IHA.4908@TK2MSFTNGP04.phx.gbl">eDpgKzO4IHA.4908@TK=
2MSFTNGP04.phx.gbl</A>...</DIV><FONT=20
face=3DArial><FONT size=3D2>
<DIV> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Hi Friends,</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>I am trying to print word =
document in=20
the server using vb.net and we are using following code to do=20
so.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Courier New">Dim =
WordApp As New=20
Word.Application<BR>WordApp.Documents.Open(strFullPath, , , , , , =
, , , ,=20
, , , , )<BR>WordApp.Documents(1).PrintOut(, , , , , , , =
bv_CopiesNum, , ,=20
False, , bv_PrinterName, False, False, False, False,=20
=
False)<BR>WordApp.Documents(1).Close()<BR>WordApp.Application.Quit()</FON=
T></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Here the problem is sometime =
when the=20
system is restarted this donsen't work and we get exception =
from the=20
word.exe as </FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2><STRONG>"Word cannot print. =
There is no=20
printer installed"</STRONG></FONT></DIV>
<DIV><STRONG><FONT face=3D"Courier New" =
size=3D2></FONT></STRONG> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Any workaround or solution is =
highly=20
appricated.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Thanks in advance.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DVerdana color=3D#800080=20
size=3D2><STRONG>V.Balaji</STRONG></FONT></DIV>
<DIV><FONT face=3DVerdana color=3D#800080 =
size=3D2><STRONG>iInterchange Systems=20
Pvt. Ltd.,</STRONG></FONT></DIV>
<DIV><FONT face=3DVerdana color=3D#800080 size=3D2><STRONG>Chennai =
| Tamil Nadu=20
|=20
India.</STRONG></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></FONT=
></FONT></BODY></HTML>
------=_NextPart_000_0015_01C8E10C.28F0B560--