c# - Software to receive printjobs and forward them to printers in a LAN -
I want to create a software that Windows will recognize it as an established printer driver and that software "device and printer "
Just like ImagePrinter , you can access it through the following link
When this image printer is installed on a computer , Then Windows lists it under the printers and devices, so we can do it on our network Can share by clicking OK in a LAN users can add it as a remote printer and send print jobs, which will be converted into the format image to print jobs (JPG, etc.) and in a specified directory Will save
What do I want to get those print jobs from other PACs on the LAN such as Image Printers and send them to the actual printers shared in the LAN so they can send it from their machine. (Like computers are running computers while sending their print job) so that they can be printed.
To do this, I need to get two things. 1- In a way to build software in windows, it's a printer (so it can be easily shared and get a print job
2- Send print jobs to remote remote printers added to the machine running on my software like the machine's own print job.
> I will send them to C # Want to do (because my rest The application code is in C #, anyway if it can be combined together then the programming language is not a matter.)
Please direct me to, or even read on some topics .. coz I have no idea how to make it. Only a little reassuring because ImagePrinter is similar software. So the task is possible.
Thanks in advance.
This can be done correctly by combining four items:
- < Li> A print queue setup with a PostScript printer driver, shared on LAN;
- (Scroll down to get
gs871w {32,64} .exe
to post; - (
redmon17.zip < / Code> Download) as a 'Printer Port Monitor';
- OK what you do to do a DOS batch file;
Printues'
What's left for: Write Simple Programs / Applications / BatchScript, which does three things:
- Taking incoming postScript as its input,
- input Call the GhostScript commandline to convert% Imageformat% of your choice,
- and finally send% imageformat% to jobs of your choice in the form of jobs.
Here are some additional hints:
If you have a ghostscript for There are newcomers, maybe you will have the biggest problem with the construction of a command line which is what you want to do here are some examples.
The data obtained from a standard input (at the end of the stdin, -
command) will replace a single page, black + white TIFF G4, with a resolution of 600 dpi, Where each page is a separate file whose name is page_001.tif
, page_002.tif
, etc.:
gswin32c ^ -dBATCH ^ -dnopuse ^ ^ -dsfr -sdevike = Tiffg4 ^ ^ -r600x600 -soutputfile = a: /pth/to/autput/pej_%03dktif ^ - ### & lt; - Note this!
Here will generate the same output, which is a Ghostscript command line, but this time as a single multi-page TIFF G 4:
gswin32c ^ -dbatc -dnopuse ^ ^ ^ -dsfr -sdevike = Tiffg4 ^ ^ -r600x600 -soutputfile = a: /pth/to/autput/malti_pej_g4ktif ^ - ### & lt; - Note this!
Do not want black + white G4 TIFF, but colorful TIFF, 32-bit CMYK? Well, to use a different output device for Ghostscript:
gswin32c ^ -dBATCH ^ -dNOPAUSE ^ -dSAFER ^ -sDEVICE = tiff32nc ^ -r600x600 ^ -sOutputFile = c: / path / To / output / Multi_page_color.tif ^ - ### & lt; - Note this!
Do you want jpeg? Sorry, there is no such thing as multi-page jpeg. But single-page no problem:
setout output = some-unique-name & amp; ^ ^ Gswin32c -dbatc -dnopuse ^ ^ ^ -dsfr -sdevike = JPEG -djpegk ^ = 95 ^ ^ -r600x600 -soutputfile = A: /pth/to/autput/%outputnme%-pej_%03dkjpeg ^ - ## # & Lt; - Note this!
Comments
Post a Comment