Results 1 to 7 of 7

Thread: submit the printer to be used to a DRW report

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2011
    Location
    Germany Hamburg
    Posts
    215

    Default submit the printer to be used to a DRW report

    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

  2. #2
    Join Date
    Mar 2009
    Location
    Cumming, Georgia USA
    Posts
    1,891

    Default Re: submit the printer to be used to a DRW report

    Set psPrinterName to "Dell 2330dn Laser Printer"

  3. #3
    Join Date
    Nov 2011
    Location
    Germany Hamburg
    Posts
    215

    Default Re: submit the printer to be used to a DRW report

    i Integrate it in the "Procedure OnInitializeReport" but the report still prints on the default printer.

  4. #4
    Join Date
    Mar 2009
    Location
    Cumming, Georgia USA
    Posts
    1,891

    Default Re: submit the printer to be used to a DRW report

    I think peOutputDestination needs to be set to PRINT_TO_PRINTER (according to the help?) when you want to specify a certain printer.

  5. #5
    Join Date
    Nov 2011
    Location
    Germany Hamburg
    Posts
    215

    Default Re: submit the printer to be used to a DRW report

    peOutputDestination is set correctly. The alternative printer is always overwritten with the default. Even if it is set correctly with psPrinterName.

  6. #6
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    10,869

    Default Re: submit the printer to be used to a DRW report

    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

  7. #7
    Join Date
    Nov 2011
    Location
    Germany Hamburg
    Posts
    215

    Default Re: submit the printer to be used to a DRW report

    Thank Vincent, so it works...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •