Re: Printing to a network printer from windows 2003 server fails..

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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




.



Relevant Pages

  • Re: Print Spooler issues
    ... Don't be driven off by the term "ip printing". ... It's just a normal network printer for the terminal server, ... IP Based Printing need Public IP in TS Server & Client? ... When using an autocreated printer, the TS server prespools th eprintjob ...
    (microsoft.public.windows.terminal_services)
  • Re: Limited User Printer Issue
    ... Direct IP printing is, printing directly to a network printer, versus going through the print server. ... It will be fine for the rest of the day, but when they log back onto their laptops using their credentials, the issue returns. ...
    (microsoft.public.windows.server.general)
  • Re: Printing to a network printer from windows 2003 server fails..
    ... Not sure if this is the solution but i finally got the printing to work.... ... I went on to the server and added the printer i am trying ... 2003 server and printing on network printer works fine.. ... I did get this doubt myself about user account and have tried to run the ...
    (microsoft.public.dotnet.general)
  • Re: print macro
    ... "Each client's printer address is different when printing to the server" ... default printer to a network printer, print my spreadsheet, then change ... local machine to a network printer ie... ...
    (microsoft.public.excel.programming)
  • Re: Printing to a network printer from windows 2003 server fails..
    ... It's purpose is basically to seperate out bulk printing and emailing from my ... I did get this doubt myself about user account and have tried to run the ... The server which will eventually host this app. ... application does not have access to the network resource, ...
    (microsoft.public.dotnet.general)