Printing in Windows XP lazarus / 7-LCL ---------------------------------------------------------------------- Guest · 2005-02-28 10:02 Does anybody know how to print the lines of a TMemo in Windows Xp? I checked the "Printers" unit and there is not an implementation of DoEnumPrinters so I tried to implement one myself using the Windows function "EnumPrinters", but I cannot figure out which unit to add to the "uses" section so that it works correctly. I don't think it's WinApi or Windows, because I' ve tried it  and it couldn't find the function. ---------------------------------------------------------------------- Anonymous · 2005-03-18 18:21 Install Printers4Lazarus pakage Olivier ---------------------------------------------------------------------- Anonymous · 2005-05-28 22:46 howto install Printers4Lazarus, i download from sf.net, more not exists .lpk ---------------------------------------------------------------------- matthijs · 2005-05-29 07:30 1. Goto {$LazarusDir}/components/printers. You will find the Printer4lazarus package file there. 2. To print the context of a memo there are no standard methods or procedures. All you can do is put the contents of the memo on the printer canvas. ---------------------------------------------------------------------- matthijs · 2005-05-29 08:21 Putting the contents of your memo to the printer You could do something like: Code: [Select] begin   Printer.BeginDoc;   Printer.Canvas.TextOut(20, 20, 'Some line of text!')   Printer.EndDoc; end; To print the next line of text find the height of the text with Code: [Select]Printer.Canvas.TextHeight('Gg'); and it this to the Y coordinate of the TextOut function.