Re: Printing to a network printer from windows 2003 server fails..
- From: ferhat karaca <ferhat karaca@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 2 Feb 2008 05:37:00 -0800
exactly same problem at my project too..
additionally O wrote test program on winform with vb.net.
2003 server and printing on network printer works fine..
In my case webservice cannot send docment to networkprinter ..
Any help will be appriciated..
"Sai Vajja" wrote:
Hi Norman.
Sorry for not being very clear in my earlier post...
Here is the actual situation..
This is a ment to be a server based application and will be running as a
windows service.
It's purpose is basically to seperate out bulk printing and emailing from my
website.
I did get this doubt myself about user account and have tried to run the
service under various accounts (including an admin account..) but i still get
this same error.
I even tried all comnbinations of the \\server\printername with both ip
addresses and names.
The IT support guys here at my work said it could be something to do with
the printer drivers but i doubt that (what do you think?).
The service works fine when i test it from my development PC which is xp
professional. The server which will eventually host this app. is windows 2003
server...
"Norman Yuan" wrote:
What kind of application do you run in the server? A Win form app, Windows
service, or web application? It is possible the user account used to run the
application does not have access to the network resource (printer),
especially if it is a web app. If you absolutely need to print at server
side, you need to make sure the application runs under a user account that
has to permission to needed network resources.
"Sai Vajja" <SaiVajja@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7A001297-89D8-485D-AB41-1C409461BC21@xxxxxxxxxxxxxxxx
Hi
I have a problem printing to a network printer from my VB.NET code
component.
When i try printing to the network printer from my development PC all
works
fine..
But, when i publish the code to the server and try the print, i get the
following message....
Settings to access printer '\\ServerName\MyNetworkPrinterName' are not
valid.
When i try to change the spooler name to its IP, i still get the same
error
message...
Settings to access printer '\\xx.xx.xx.xx\MyNetworkPrinterName' are not
valid.
Here is a glimpse of the code behind the print...
m_DocumentPath = m_DocumentLocation & m_DocumentName
With m_pd
.PrinterSettings.PrinterName = m_PrinterName
.PrinterSettings.Copies = m_Copies
'.PrinterSettings.
AddHandler m_pd.PrintPage, New
System.Drawing.Printing.PrintPageEventHandler(AddressOf PrintImage)
m_pd.Print()
End With
- Follow-Ups:
- Prev by Date: Reconstructing Class Project - Solution and Project files gone? VS.NET 2005
- Next by Date: Re: upgrading from windows 98 to windows xp
- Previous by thread: Reconstructing Class Project - Solution and Project files gone? VS.NET 2005
- Next by thread: Re: Printing to a network printer from windows 2003 server fails..
- Index(es):
Relevant Pages
|