what is the alternative to Delphi commands
"Prn := TPrintObject.Create;"
and
"GetTextMetrics( Printer.Canvas.Handle,TextMetrics );"
Any help greatly appreciated.
That object is
not a standard Delphi object, afaik, but third party code it seems.
The printers - as suggest above - unit is 100% Delphi compatible.
The second question works out of the box on windows systems only: it is a windows API call.
(And to be sure: DON'T use mode objfpc but mode delphi, although that is probably not related.)
Also note that PRN is directly avalable when you use the printe
r unit instead or the printer
s unit.
The difference is the line printer device vs the printer.canvas.