1. Home
  2. Computing & Technology
  3. Delphi Programming

Printing with TPrinter

Using the TPrinter object in Delphi. Printing text, and bitmaps. Setting printer properties and much more.
Quick Reports Tutorial
Extensive tutorial on printing with Quick Report components and Delphi.
Tips and code samples
Need to print using Delphi code? Don't even try before you check and/or set the default printer, set margins, get active printer, ... and many more.
Changing the printer port in code
How can we change the port a given printer will use in code. The following example demonstrates changing the port to print to a file.
Formatting and Printing Output for the Printer
Here is an example that prints columns that are right, left, and center justified. There are headers, footers, and, generally, a bunch o' things here.
Getting the printing margin of the page
How can we get the printing margin of the page.
How to get the default printer name
You want to access the default printer but you don't know how to get its name from the system. This article will show you how to achieve this result under Windows 95, 98, NT, and 2000.
Printing Directly from Delphi
Covers the basics of using Write and TextOut to print from Delphi, giving consistent results independent of printer.
Printing in Delphi without using the TPrinter Unit
Example uses the Windows API function PrintDlg() to allow the user to choose a printer and prints two pages using the returned DC.
TPrinter quick tips
Printing a form, printing a text.

Explore Delphi Programming

More from About.com

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Using VCL Components
  5. TPrinter printing

©2008 About.com, a part of The New York Times Company.

All rights reserved.