S
Sai Vajja
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
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