Preview: save to same file

Stimulsoft Reports.NET discussion
Post Reply
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Preview: save to same file

Post by Fabio Pagano »

If in preview i open (from a file) a rendered report (eg. "c:\reports\0001.mdz") if i click "Save" (third button in preview form) it defaults to the last dir where i saved a report last time. I would like to default to dir where the actual report has been loaded (in my example to "c:\reports"). Is it possible?

Thanks.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Preview: save to same file

Post by Edward »

Fabio wrote:If in preview i open (from a file) a rendered report (eg. "c:\reports\0001.mdz") if i click "Save" (third button in preview form) it defaults to the last dir where i saved a report last time. I would like to default to dir where the actual report has been loaded (in my example to "c:\reports"). Is it possible?
It seems that you somehow have changed the standard behavior of the Save button in the StiPreviewControl. When you click Save button then the suggestion of saving will be exactly in to that folder from which loading was proceed. But if you didn't press Load button in the Preview window, but you want to save the report into the specified folder, then this folder is getting from the following:

StiOptions.Preview.Window.ReportSaveLoadPath

This parameter is used for loading and saving of reports by default and is used in the Open/Save dialogs for setting default folder.

You also may change the behavior of saving report from the preview window in StiPreviewControl.SavingDocument static event.

If this tips don't help you to resolve your task, then please describe your task in details, please.

Thank you.
Post Reply