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(_printDocume nt.PrinterSetti ngs.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 programmaticall y copy .prn files and the printer picks it from there?
Thanking you in advance
Regards
Jignesh
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(_printDocume nt.PrinterSetti ngs.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 programmaticall y copy .prn files and the printer picks it from there?
Thanking you in advance
Regards
Jignesh