0

In Delphi XE2, I'm using a TAdvStringGrid to print a simple report. Prior to submitting the job, I execute a TPrintDialog to select the target printer, but regardless of which printer I select in the dialog, the Windows default printer is used. There doesn't appear to be a way to get the selected printer's name or list index out of the dialog so I can set the TPrinter.PrinterIndex. Is there a workaround for this?

1
  • 3
    TPrintDialog updates TPrinter (including its PrinterIndex) if the dialog is successful. You don't need to set the PrinterIndex yourself. If the report is going to the default printer, then that is likely a fault in whatever you are using to do the actual printing. Commented Apr 29 at 20:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.