Missing last opened file location

Stimulsoft Reports.NET discussion
Post Reply
al2ping
Posts: 1
Joined: Tue Mar 26, 2013 9:42 pm

Missing last opened file location

Post by al2ping »

I have a custom from inherited from StiRibbonDesigner which is named for example MyDesignerForm.

When I use the following code to open a designer, the file name on the title bar is not shown like xyz.mrt but Report.mrt. And, if I make some changes and click on the save button, it will ask me for choosing a place rather than using the last opened file location i.e. c:\xyz.mrt.

Code: Select all

StiReport report = new StiReport();
report.Load("c:\\xyz.mrt");
MyDesignerForm frm = new MyDesignerForm();
frm.Report = report;
frm.ShowDialogDesigner();
How could make the designer know that this report is named xyz.mrt and it is opened from that place?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Missing last opened file location

Post by HighAley »

Hello.

Please, try to set next option:

Code: Select all

StiOptions.Designer.CanDesignerChangeReportFileName = false;
Thank you.
Post Reply