Page 1 of 1
Page summary
Posted: Tue May 12, 2015 9:34 am
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.
Re: Page summary
Posted: Wed May 13, 2015 6:48 am
by HighAley
Hello.
Sorry, maybe we don't understand your question.
Could you describe more detailed what is wrong?
Thank you.
Re: Page summary
Posted: Wed May 13, 2015 8:34 am
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?
Re: Page summary
Posted: Wed May 13, 2015 1:30 pm
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.
Re: Page summary
Posted: Thu May 14, 2015 5:10 am
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?
Re: Page summary
Posted: Thu May 14, 2015 1:47 pm
by HighAley
Hello.
What problem do you have? You should calculate sums after changing the component's size.
Thank you.
Re: Page summary
Posted: Fri May 15, 2015 5:45 am
by llysyganicz
When I change height in first pass sum is still incorrect and report does not look good.
Re: Page summary
Posted: Mon May 18, 2015 8:45 am
by HighAley
Hello.
Do you really need to use Double pass mode?
Thank you.
Re: Page summary
Posted: Mon May 18, 2015 10:03 am
by llysyganicz
For single pass layout looks like at image above. For portrait template summary is invalid. For landscape summary is fine.
Re: Page summary
Posted: Wed May 20, 2015 10:48 am
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.