I am bypassing the print spooler?

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Back
Top