Setting Export options

edited 11:14AM 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 11:14AM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.