Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-11

LazReport feature request

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Giuliano Colla

When you invoke the ShowReport or ShowPreparedReport methods of a TfrReport, you get a preview of the report, with a "Save Report" button.

Save Report will open a file dialog, which defaults to the user home directory, and an empty Filename.

Dealing with inexperienced users, I would need to set the DefaultDir and Filename of the file dialog to something meaningful by the application point of view.

Is that already possible, setting some TfrReport properties I've been unable to find, or it would be necessary to patch LazReport by providing additional public properties, or providing overloaded versions of ShowReport and ShowPreparedReport, with additional parameters?

Thanks for any hint.

Giuliano

Reply by email

Jesus Reyes
to Giuliano Colla

El Jueves, 21 de noviembre, 2013 6:10:55, Giuliano Colla escribi?:

Show quoted text 13 lines
Dealing with inexperienced users, I would need to set the DefaultDir and Filename of the file dialog to something meaningful by the application point of view. Is that already possible, setting some TfrReport properties I've been unable to find, or it would be necessary to patch LazReport by providing additional public properties, or providing overloaded versions of ShowReport and ShowPreparedReport, with additional parameters? Thanks for any hint. Giuliano

You can use the?Report.ExportFileName field for selecting the default file name the dialog will use on exporting. In addition, passing a filename with extension will make an initial selection of export filter.

Setting the initial directory was not implemented, is now in r43471, the file path extracted from the FileName is used.

Jesus Reyes A.

Reply by email

Giuliano Colla
to Jesus Reyes

Jesus Reyes ha scritto:

Show quoted text 21 lines
El Jueves, 21 de noviembre, 2013 6:10:55, Giuliano Colla escribi?: > Dealing with inexperienced users, I would need to set the DefaultDir and > Filename of the file dialog to something meaningful by the application > point of view. > > Is that already possible, setting some TfrReport properties I've been > unable to find, or it would be necessary to patch LazReport by providing > additional public properties, or providing overloaded versions of > ShowReport and ShowPreparedReport, with additional parameters? > > Thanks for any hint. > > Giuliano > You can use the Report.ExportFileName field for selecting the default file name the dialog will use on exporting. In addition, passing a filename with extension will make an initial selection of export filter. Setting the initial directory was not implemented, is now in r43471, the file path extracted from the FileName is used.

Thank you,

Giuliano

Giuliano Colla Before activating the tongue, make sure that the brain is connected (anonymous)

Reply by email