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

Report always prints to Default Printer.

edited March 2003 in General
I have two printers, PrinterA (Default Printer) and PrinterB.
I want my report to print to Printer B

{*** Set Printer Parameters ***}
rsClientReport.DeviceType := 'Printer';
rsClientReport.VolumeName := VolumName;
rsClientReport.ReportName := ReportName;
rsClientReport.PrinterSetup.PrinterName := PrinterB;
rsClientReport.PrinterSetup.Copies := 1;

{*** Clear Local and Remote Cache ***}
rsClientReport.RefreshRequest := True;
rsClientReport.AutoSearchGroups.Clear;
rsClientReport.Reset;

{*** Print The Report *** }
rsClientReport.Print;

However, it prints to the Default Printer (PrinterA).

Olivier Peter.

Comments

  • edited March 2003
    If the printer name you are assigning is not correct it will send the job to
    the default printer. For instance, if the printer name is "HP Deskjet 720C"
    and you assign "HPDeskjet720C" it will instead send it to the default
    printer. As long as I had the exact printer name assinged to
    PrinterSetup.PrinterName it worked with no problems (case does not seem to
    matter as long as the spelling and spacing is correct).

    Mark Greenhaw
    Vulcan Software Systems

    Please do not attempt to reply to this message:
    To email me:
    Remove the X's before and after xmark@onedomain.comx



This discussion has been closed.