PDA

View Full Version : Printing Question...



Voltrox
18-09-2006, 10:53 PM
Hello,

How do I print to a printer in Delphi Programmatically?

I also want to be able to choose which printer?

But not using the default Windows printer dialog...

XProger
19-09-2006, 07:33 AM
uses
Printers;
...
Printer.BeginDoc;
Printer.Canvas.TextOut(100, 100, 'Hello World!');
Printer.EndDoc;