Click here to Skip to main content
15,888,008 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a virtual printer using redmon and I can successfully read \SNIFF the printED documents in my program, but my problem is I want to print the same document on the physical printer. Can I redirect the print job to another printer?
Posted
Updated 8-Aug-12 5:24am
v2
Comments
[no name] 8-Aug-12 11:27am    
Is there something stopping you from printing on any other printer?

1 solution

You should be able to use any of the "Copy X to Printer" options of the port, then copy whatever input you receive in your program to that output. See this page[^] for instructions on how to use each of them.
 
Share this answer
 
Comments
vishnulalr 8-Aug-12 12:21pm    
thanks for the reply i have tried it

when i use copy temperory file to printer and i set the physical printer driver but it shows printing and but actually printing is not done pls help
lewax00 8-Aug-12 12:56pm    
Are you copying the input stream in your program to that file? because you'll have to modify your program for it to work, Redmon doesn't duplicate the stream on it's own.
vishnulalr 8-Aug-12 13:07pm    
no actually i configure on the Control Panel->Hardware and Sound\Devices and Printers->corresponding redirecterd printerdriver options such as copy temperory file to printer /copy standard out to /.etc but my program will print virtually and the physical printer shows the job and it gives a status message of printing but actually no printing is done
lewax00 8-Aug-12 15:07pm    
If you read the link in my post, you'll see that what Redmon does is create an empty file and you have to pass that name in as an argument to your program, then your program has to duplicate the stream. If you're already working with the stream this should not be difficult, just write the stream out to the file specified by Redmon, then seek back to the start of the stream and do whatever it is you do with it in your program.
vishnulalr 9-Aug-12 23:42pm    
it worked thanks.. lexwax

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900