Page summary
-
- Posts: 55
- Joined: Thu Mar 12, 2015 10:06 am
Page summary
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.
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
Re: Page summary
Hello.
Sorry, maybe we don't understand your question.
Could you describe more detailed what is wrong?
Thank you.
Sorry, maybe we don't understand your question.
Could you describe more detailed what is wrong?
Thank you.
-
- Posts: 55
- Joined: Thu Mar 12, 2015 10:06 am
Re: Page summary
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?
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
Re: Page summary
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.
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.
-
- Posts: 55
- Joined: Thu Mar 12, 2015 10:06 am
Re: Page summary
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
Hello.
What problem do you have? You should calculate sums after changing the component's size.
Thank you.
What problem do you have? You should calculate sums after changing the component's size.
Thank you.
-
- Posts: 55
- Joined: Thu Mar 12, 2015 10:06 am
Re: Page summary
When I change height in first pass sum is still incorrect and report does not look good.
- Attachments
-
- Landscape001.png (68.4 KiB) Viewed 5134 times
Re: Page summary
Hello.
Do you really need to use Double pass mode?
Thank you.
Do you really need to use Double pass mode?
Thank you.
-
- Posts: 55
- Joined: Thu Mar 12, 2015 10:06 am
Re: Page summary
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
Re: Page summary
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:
Please, try to specify the height a little different way. If you split the row of two, then set the Heigth next way:
Then there should be changes in height, all components will stay on their pages and thw sums will be right.
Thank you.
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
Code: Select all
part1.Height = height3[wiersz-1] / 2;
part2.Height = height3[wiersz-1] - part1.Height;
Thank you.