Page 1 of 1

Missing last opened file location

Posted: Tue Mar 26, 2013 9:50 pm
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?

Re: Missing last opened file location

Posted: Wed Mar 27, 2013 11:37 am
by HighAley
Hello.

Please, try to set next option:

Code: Select all

StiOptions.Designer.CanDesignerChangeReportFileName = false;
Thank you.