469,644 Members | 1,746 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,644 developers. It's quick & easy.

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

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

if(_printDocument.PrinterSettings.IsValid)

_printDocument.Print()



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

Regards

Jignesh
Oct 30 '07 #1
0 1577

Post your reply

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

Similar topics

reply views Thread by KohlerTommy | last post: by
4 posts views Thread by Alvaro Pereira | last post: by
1 post views Thread by Maileen | last post: by
reply views Thread by Tessa | last post: by
1 post views Thread by Michael Beck | last post: by
5 posts views Thread by Tony | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.