StackOverflow when previewing/printing complex report

Stimulsoft Ultimate discussion
Post Reply
WalterJKR
Posts: 22
Joined: Tue Mar 18, 2014 6:41 am

StackOverflow when previewing/printing complex report

Post by WalterJKR »

Hello,

We have rather complex report for business objects consisting of two databands (first one is master, second is depending on primary) and one footerband containing panel with additional databand. The meaning of the panel is to summarize additional values from different data sets through groupbands, but they were removed for the sake of finding simplest possible error generating report.
- The core of the problem is probably that the databand in the panel has the same business object mapped as the master databand of the report.

What we are trying to achieve:
- first databand prints invoice items
- second databand prints serial numbers for each invoice item
- after all invoice items and their serial numbers printed, additional information is printed, like VAT information for item groups in the left part of the footerband (we have multiple VAT rates and need to summarize them differently) and invoice summary in the right part of the footerband.

I've managed to prepare simplified version of report in the attached solution.
The business objects in the report describe complex object structure (describing our current object model), the classes in the solution are quite simple (the minimum needed for the working scenario).
The solution contains another report where databands and the footerbands are organized in different order, resulting in not crashing the application, but having wrong results (repetitive values printed in the end of report).

Maybe, we design the report in the wrong order, or we fail in filling the right properties of databands and/or footer. Any help would be appreciated.
Attachments
MasterDetailWithPanel.zip
Sample solution
(433.42 KiB) Downloaded 273 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: StackOverflow when previewing/printing complex report

Post by Alex K. »

Hello,

We need some time for check the issue.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: StackOverflow when previewing/printing complex report

Post by HighAley »

Hello.

We have made an improvement of the StackOverflow error. The improvement will be available in our major release build.
But there still a problem in that you use the same Business Object on different bands.
Please, register the business objects with different name and change the Business Object of the Data Band on the Footer.

Code: Select all

report.RegBusinessObject(faktura.GetType().Name, faktura);
report.RegBusinessObject(faktura.GetType().Name + "2", faktura);
report.Dictionary.SynchronizeBusinessObjects(3);
report.DesignWithWpf(); // .ShowWithWpf();
Thank you.
WalterJKR
Posts: 22
Joined: Tue Mar 18, 2014 6:41 am

Re: StackOverflow when previewing/printing complex report

Post by WalterJKR »

Thank you Aleksey, for the advice.
We are now looking back on this issue and going to implement it.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: StackOverflow when previewing/printing complex report

Post by HighAley »

Hello.

OK. Let us know if you need any additional help.

Thank you.
Post Reply