By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,267 Members | 1,808 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,267 IT Pros & Developers. It's quick & easy.

Print on a Network Printer which is not available to System on which the code runs

P: 14
i am working on a project (windows service using VB.Net and C#) which gets the check details and check images from the database and prints the check to a printer.

Printer name is configured in a XML file.

Printer names are names which are available to the system on which the service is running.

Printers used are network printers and are added using Printers and Faxes -> Add a printer.

To validate the printer I am using the following code below:

_printDocument.PrinterSettings.PrinterName = printerName



All the above things works fine.

Now the new requirement is that checks need to be printed on a network printer that is not added to the system or

not available to the system on which the service is running,but the printer is available in the network.

I did research on the internet ,but failed to get any information on this new requirement.

My question is

First Option:

Is it possible to print on a network printer which is not added to the system on which the service runs.

using .Net or Win32API?

Second Option:

I created a .prn file and tried to copy to the UNC path of the network printer but that does not work.Is there any location

where we can programmatically copy .prn files and the printer picks it from there?

Thanking you in advance


Oct 30 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.