Forum > Lazarus Extra Components
Printer4Lazarus, Lazarus 3.4
wp:
Unit Printers is in the "general-purpose" package LCLBase (heart of the LCL). This way, you can use the TPrinter class in your application. BUT: at this stage the LCL does not know how to create an instance of TPrinter. Therefore, you must add the Printer4Lazarus package to the project requirements which takes care of that. And along with this package you also get the OSPrinters unit - do not look for it in OPM. Quite often you do not have to add OSPrinters to the uses clause because this is handled automatically.
BTW, the easiest way to add Printer4Lazarus is to drop one of the print dialogs on a project form.
Navigation
[0] Message Index
[*] Previous page