Setting Export options

edited 10:45PM in FastReport VCL 5
I want to export to a JPG. I don't want the Export JPG Dialog to pop up, but I do want the filename dialog to appear.

I have this code

JPEGExport08->FileName = FN3;
JPEGExport08->DefaultPath = "";
JPEGExport08->ShowDialog = false;
JPEGExport08->SeparateFiles = false;
Report3->Export(JPEGExport08);

This works but it saves the file to who knows where. The filename dialog never appears.

If I change this

JPEGExport08->ShowDialog = true;

It works, but I get two dialogs, the JPG settings, then the filename. I just want the filename dialog.

Thanks,
Doug

Comments

  • edited 10:45PM
    I use the following way :
    1/ before saving I Create a TSaveDialogwith the good filters
    2/ if SaveDialog.Execute = true I use SaveDialog.FileName for the report export name.

Leave a Comment