What is the definition of "Current Printer"?

  • 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

  • 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