How to Print Images

Posted December 15th @ 1:49 pm by m3Rlin

Sometimes you want to print an image in Delphi but the TImage component doesn’t have any printing methods. Well, the solution is quite easy. All you have to do is draw on the printers Canvas. This sample code should give you the idea.
The first procedure will print only Bitmap images and will scale the image [...]

How to Print TStrings

Posted December 15th @ 7:29 am by m3Rlin

The TMemo and TListBox components don’t have any print functions although sometimes they would come in very handy. Well, here’s the solution. All you have to do is open a text file on the printer and print anything you want.

uses
Printers;

var
iI [...]