Export to file without "Save as" dialog

edited 3:02AM in FastReport 4.0
Report.Export(PDFExport);

How can i turn off "save as" dialog ? Only "Save as" dialog, I would set path and file name by code.
  // not a solution 
  PDFExport.FileName:= 'export';
  PDFExport.DefaultExt := 'pdf';
  PDFExport.FileName := AFileName;
  // this turn off additional options dialog and saveAs dialog  
  PDFExport.ShowDialog := false;

Thanks for help

Leave a Comment