I am bypassing the print spooler?

G

Guest

In my commercial financial application I run a deposit report. I use an
option to copy the report to the Clipboard. I then run a .NET consol app to
“grab†the Clipboard and format the data and print laser deposit tickets. I
use the following to set my printer:
PrintDocument doc = new PrintDocument();
if (printer != "default")
doc.PrinterSettings.PrinterName = printer;
I then raise an event:
doc.PrintPage += new PrintPageEventHandler(this.PrintPage);
Then the:
PrintPageEventArgs ev.Graphics.DrawString
draws a line one at a time.

I believe I am bypassing the print spooler. Is this wishful thinking on my
part?

Thanks
Austin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top