Editing an existing report

Stimulsoft Reports.NET discussion
Post Reply
Sandy Pham
Posts: 62
Joined: Mon Dec 11, 2006 1:43 pm
Location: U.S.A.

Editing an existing report

Post by Sandy Pham »

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
EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

Editing an existing report

Post by EDV Gradl »

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
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Editing an existing report

Post by Vital »

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.
Sandy Pham
Posts: 62
Joined: Mon Dec 11, 2006 1:43 pm
Location: U.S.A.

Editing an existing report

Post by Sandy Pham »

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!
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Editing an existing report

Post by Vital »

Please show your code (or send it to support) you are used for show progress dialog. We will try give recommendations.

Thank you.
Post Reply