I'm having trouble editing existing reports. I see the designer open with the report, but it immediately closes again and returns DialogResult.Cancel as the return code. Sometimes it will work the first time I open the report, but after that, it always opens and closes right away.
Here's my code:
StiReport report = new StiReport();
report.RegData("MyDataSource", ds);
report.LoadPackedReport("C:\\download\\test.mrz");
DialogResult result = report.Design();
Am I missing something?
Thanks,
Sandy
Editing an existing report
-
- Posts: 62
- Joined: Mon Dec 11, 2006 1:43 pm
- Location: U.S.A.
Editing an existing report
I think, if I remember correctly, you should call
DialogResult result = report.Design(true);
wheras true sets the deisgner to a modal state.
I hope that helps.
Marco
DialogResult result = report.Design(true);
wheras true sets the deisgner to a modal state.
I hope that helps.
Marco
Editing an existing report
This bug occurs on any reports? If you comment load method error occurs? You apply any changes of report designer?
Please say me which version of StimulReport.Net you are use (version, date)? Please try remove all config files of StimulReport.Net.
Thank you.
Please say me which version of StimulReport.Net you are use (version, date)? Please try remove all config files of StimulReport.Net.
Thank you.
-
- Posts: 62
- Joined: Mon Dec 11, 2006 1:43 pm
- Location: U.S.A.
Editing an existing report
I finally figured out that it was a progress dialog I display when I load my packed report from the database (before I call Stimulsoft's stuff). When I don't display the progress dialog, everything works okay. Thanks!
Editing an existing report
Please show your code (or send it to support) you are used for show progress dialog. We will try give recommendations.
Thank you.
Thank you.