Missing last opened file location
Posted: Tue Mar 26, 2013 9:50 pm
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.
How could make the designer know that this report is named xyz.mrt and it is opened from that place?
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();