Export to PDF filename

edited 2:03AM in FastReport 3.0
Hi,

I want to be able to pre-set the filename when the user exports a report to PDF. I don't mind if the "Save as" dialog still appears but I want to pre-populate the name.

Is this possible?

Andy

Comments

  • edited 2:03AM
    Sorry,

    frxPDFExport1->Filename = "";

    ;)

    Andy
  • edited 2:03AM
    Except it doesn't work... ;)

    I'm having a conversation with myself. Anybody else who's listening please feel free to join in ;)

    I'm also getting an AV when I Load a report, save to pdf, exit, re load the report and use the following code,

    ((TfrxMemoView*)frxReport->FindObject("Memo4"))->Text = cmbProducts->Items->Strings[cmbProducts->ItemIndex];

    Any ideas anyone?

    Andy
  • edited March 2005
    You can't preset the filename. It will be prompted when you press OK in the dialog.

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.