HOw to use local instance of TPrinter
- by gorann
Hi,
I need to do some printing using TPrinter. The problem is I can not, for varoius reasons, use Global object Printer.
I want to be able to create my instance of TPrinter and print using that one.
I tried with:
MyPrinter := TPrinter.Create;
MyPrinter.BeginDoc;
but this generates AV.
Any idea what does it take to print something using my instance of TPrinter?
Regards
Goran Nagy