trouble printing text string in Delphi

96 Views Asked by At

Printer.Canvas.TextOut causes an "undeclared identifier" error in Delphi.

How do I correct this error?

I am using Windows FMX Printer in the uses section in a Windows 32bit application.

I searched all the RAD Studio documentation which suggests TextOut should work.

1

There are 1 best solutions below

0
Remy Lebeau On

Canvas.TextOut() exists only in VCL's TCanvas, not in FMX's TCanvas. For FMX, use Canvas.FillText() instead.