Report always prints to Default Printer.
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.
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.
This discussion has been closed.
Comments
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