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

Paper size not changing after target printer changed in Printer Dialog

edited May 2004 in General
RB 5.56, Delphi 5 plus Upgrade, Dymo label printer, Any other printer with
different paper size, WinXP Pro

When the dymo labelwriter is the default printer in windows and you print a
full letter sized report and change the printer to the non-dymo printer...
it keeps the papersize set to the dymo label dimensions. This causes the
laser printer to spool 1000's of pages to the printer each with the same
amount of text (usually just the header or part of it) that would have
appeared on the label had it been selected.

What code and where do I put it to resolve this issue?

Dayna.

Comments

  • edited May 2004
    procedure TForm2.ppReport1PrintDialogClose(Sender: TObject);
    begin
    ppReport1.PrinterSetup.PrinterName :=
    Printer.Printers[Printer.PrinterIndex];
    end;

    Solved my own problem. Here is the solution in case someone else is having
    it.

    Dayna.


This discussion has been closed.