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

Silent printing

edited September 2002 in Devices
We're using RBPro7. Is it possible to perform some sort of silent printing?
We want to specifiy all printer settings at runtime and do not need any
preview or print dialogs.

Thanks,

Oliver Kr?cken

Comments

  • edited September 2002
    How about set showPrintDialog to be false


  • edited September 2002
    To the previous answer add

    Set ShowCancelDialog to false;

    --
    Daniel Lemire
    Programmeur,
    Conception Design Ware Inc.
    Tél.: 819-868-8853
    Fax : 819-868-8855
  • edited September 2002
    That was the first thing i have tried.....
    ...but the preview dialog always appears.

    Any further suggestions?

    Thanks,

    Oliver Kr?cken






  • edited September 2002
    Hi Oliver,

    when working with templates you have to set these properties after the
    template is loaded.

    regards,
    Chris Ueberall;

  • edited September 2002
    this is done easily

    to do this you should do the following :


    with ppReport1 do
    begin
    // Template loading


    // Printer assignments
    with PrinterSetup do
    begin
    PrinterName := iniPrinterName;
    BinName := iniBinName;
    end;
    DeviceType := dtPrinter;
    ShowPrinterDialog := False;
    Print;
    end;



  • edited October 2002
    I think that the better way is use ppReport.PrintToDevices and PrinterSetup
    parameters you can set while disigning template.

    "Marko" ???????/???????? ? ???????? ?????????:
This discussion has been closed.