How is delphi better to print? There is a template in RTF format in it variables (for example: $name$ ). It is necessary instead of these variables to put the value of the program and print.

    1 answer 1

    It all depends on what you want to print: text or pictures. But there is also a common option for text and pictures - use the "printers" module:

     > uses printers; > ... > function print():boolean; begin > printer.BeginDoc; // Подготавливаешь к печати принтер > printer.canvas.textout(10,10,'Halo'); // работаешь с ним, как с обычным canvas > printer.EndDoc; //завершаешь печать > print:=true; >end; 
    • in INDY components everything is for printing - IgorShum
    • What nonsense! No there is nothing to print! - AseN