Page summary

Stimulsoft Reports.WPF discussion
Post Reply
llysyganicz
Posts: 55
Joined: Thu Mar 12, 2015 10:06 am

Page summary

Post by llysyganicz »

Hello.

I have problem with page summary on report.
I have two templates:
- one page landscape - it works correct.
- two pages portrait - summary for vat rates is incorrect.
Design (expect pages) and code for both templates are the same.
In attachment I send sample project.
Attachments
Summary.zip
(439.29 KiB) Downloaded 295 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page summary

Post by HighAley »

Hello.

Sorry, maybe we don't understand your question.
Could you describe more detailed what is wrong?

Thank you.
llysyganicz
Posts: 55
Joined: Thu Mar 12, 2015 10:06 am

Re: Page summary

Post by llysyganicz »

In previous templates is one mistake. I had to simplify data model for this sample. Fixed templates are in attachment.
I noticed that summary for landscape summary is also incorrect now. As You can see Page sum for "Net 23" has value 546.00. It should be 273.00. Second 273.00 is taken from first row on second page.
My question is what should I do to get valid sum?
Attachments
Portrait.mrt
(100.18 KiB) Downloaded 357 times
Landscape.mrt
(100 KiB) Downloaded 321 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page summary

Post by HighAley »

Hello.

You make calculations on the First pass, but on the Second pass change height of the components. After this the last band on the page is moved on the next page.

Thank you.
llysyganicz
Posts: 55
Joined: Thu Mar 12, 2015 10:06 am

Re: Page summary

Post by llysyganicz »

I tried to change this. When I move calculation to second pass I have problem with summary. It seems that summary is calculating in first pass. Is any possibility to calculate summary, after DataBand data generation?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page summary

Post by HighAley »

Hello.

What problem do you have? You should calculate sums after changing the component's size.

Thank you.
llysyganicz
Posts: 55
Joined: Thu Mar 12, 2015 10:06 am

Re: Page summary

Post by llysyganicz »

When I change height in first pass sum is still incorrect and report does not look good.
Attachments
Landscape001.png
Landscape001.png (68.4 KiB) Viewed 5134 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page summary

Post by HighAley »

Hello.

Do you really need to use Double pass mode?

Thank you.
llysyganicz
Posts: 55
Joined: Thu Mar 12, 2015 10:06 am

Re: Page summary

Post by llysyganicz »

For single pass layout looks like at image above. For portrait template summary is invalid. For landscape summary is fine.
Attachments
Portrait.mrt
(99.77 KiB) Downloaded 427 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page summary

Post by HighAley »

Hello.

We have found out that your code makes rows higher.
When you set height with next code the height became a little larger as expected:

Code: Select all

(sender as StiText).Height = height3[wiersz-1] / 2
Please, try to specify the height a little different way. If you split the row of two, then set the Heigth next way:

Code: Select all

part1.Height = height3[wiersz-1] / 2;
part2.Height = height3[wiersz-1] - part1.Height;
Then there should be changes in height, all components will stay on their pages and thw sums will be right.

Thank you.
Post Reply