Hello,
I would like to submit the printer to be used to a DRW report . So the Report works with PRINT_TO_PRINTER_NO_DIALOG
Ralf
Hello,
I would like to submit the printer to be used to a DRW report . So the Report works with PRINT_TO_PRINTER_NO_DIALOG
Ralf
Set psPrinterName to "Dell 2330dn Laser Printer"
i Integrate it in the "Procedure OnInitializeReport" but the report still prints on the default printer.
I think peOutputDestination needs to be set to PRINT_TO_PRINTER (according to the help?) when you want to specify a certain printer.
peOutputDestination is set correctly. The alternative printer is always overwritten with the default. Even if it is set correctly with psPrinterName.
Ralf,
peOutputDestination = PRINT_TO_PRINTER_NO_DIALOG means printing to the default printer
peOutputDestination = PRINT_TO_PRINTER means using the print dialog when the psPrinterName hasn't been set or is not set to a correct / existing printer (phPrintDlg must be zero).
If above does not resolve the problem, tell use if (and what) values are used for piFlags of the print dialog object (phoPrintDialog)
Regards,
Data Access Worldwide
Vincent Oorsprong
Thank Vincent, so it works...