WPTools prints to the Current Printer. What _exactly_ is that? Is it the windows default printer? Is it the printer returned by delphi tprinter.pas when the Printer function is executed? Or something else?
Jeremy
WPTools prints to the Current Printer. What _exactly_ is that? Is it the windows default printer? Is it the printer returned by delphi tprinter.pas when the Printer function is executed? Or something else?
Jeremy
Hi,
thats the default printer. You can select a different using Printer.PrinterIndex.
Julian
Julian, thanks for the reply. My apologies for being so slow on what surely is very simple, but do you mind if I clarify this?
I think you mean that "current printer" is the printer stored in FPrinter in printers.pas. Is that correct? So when I call Printer and get a TPrinter object, that returns what you're calling Current Printer.
On the other hand, when you say Default Printer, that is ambiguous to me. I suspect you mean Default from the point of view of WPTools. The other meaning of Default Printer, assuming I understand correctly, is the printer that Windows would print to if no one interfered with what it wants to do. Setting PrinterIndex is supposed to change the windows printer referenced in Tprinter object returned by the Printer function.
Am I hopelessly confused, or am I close?
Jeremy
Hi,
I meant the "default printer", i.e. Epson xxx.
But it is true that WPTools is also using "Printer" and not a different instance of the TPrinter class.
If you need that You can clone some code form unit WPCtrRich.pas and let it use a different instance.
Julian