Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

print dialog, printer name

edited September 2008 in General
How can I get the name of the printer that the user chose when
ppReport1.ShowPrintDialog := true?

Thanks,
George

Comments

  • edited September 2008
    George Wynne wrote:


    if PrintDialog1.Execute then
    Showmessage(Printer.Printers[ Printer.PrinterIndex ] )

    HTH

    Arno

    --
  • edited September 2008
    Try using the Report.OnPrintDialogClose event to check

    if myReport.PrinterDevice <> nil then
    ShowMessage(myReport.PrinterDevice.Printer.PrinterName);


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited September 2008
    That worked.

    Thanks,
    George

This discussion has been closed.