How to print a text with FMX.Printer

Asked

Viewed 11 times

-1

Hello, I’m migrating a print code via Vcl spooler to FMX (Firemonkey), but I can’t find the FMX method equivalent to the Vcl method Printer.Canvas.TextOut. Please tell me what methods are used to print a line of text in the FMX and how to use it.

Printer.Create;
Printer.PrinterIndex:= 1; //Indice da Microsoft Print to PDF no meu sistema
Printer.BeginDoc;
Printer.Canvas.TextOut(5, 5, 'TEXTO DE TESTE DE IMPRESSÃO');
Printer.EndDoc;
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.