Setting Export options
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
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
1/ before saving I Create a TSaveDialogwith the good filters
2/ if SaveDialog.Execute = true I use SaveDialog.FileName for the report export name.