Export without print dialog

Hello,

If I use AllowPrintToFile=true with ReportBuilder 20, I have this dialog box :

image

But is it possible to have only "export" dialog, and not the "print" dialog ?

Comments

  • Hi Arnaud,

    There is currently no way to automatically hide the print dialog when printing. I will add this to our list of possible enhancements for a future release.

    Currently you can access the OutputDialog property from the Report.BeforePrint event to hide the navigation buttons and resize the control. Below is the code I used which seemed to give a suitable result.

    uses
    ppOutputDlg;

    procedure TForm1.ppReport1PrintDialogCreate(Sender: TObject);
    begin
    TppOutputDialog(ppReport1.OutputDialog).pnlBackground.Visible := False;
    TppOutputDialog(ppReport1.OutputDialog).pnlBackground.Width := 0;

    end;

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Hi Nico,

    Thank you.
    I just add
    TppOutputDialog(ppReport1.OutputDialog).OutputType := rotExport;
    to be sure to select the Export dialog.
Sign In or Register to comment.