Re: [fpc-pascal] New to FPC: Printer problems

2009-06-09 Thread Felipe Monteiro de Carvalho
First include the package Printers4Lazarus as a requirement. Then you can write something like this: program printtest; {$mode objfpc}{$H+} uses Interfaces, // this includes the LCL widgetset Classes, Forms, Printer4Lazarus, Printers, PrintersDlgs; var PaperWorkRect: TRect; Pri

[fpc-pascal] New to FPC: Printer problems

2009-06-09 Thread Tom Backer Johnsen
I have just recently downloaded FPC / Lazarus with the plan of porting some Delphi 7 programs (Windows XP). Then I am encountering some some errors where I thought was a trivial task. I want to print the contents of a plain text file to the default printer, adding some frills like page header