PrintOn property

Stimulsoft Reports.Flex discussion
vitaliy.urazov
Posts: 47
Joined: Thu Jul 14, 2011 6:09 pm

PrintOn property

Post by vitaliy.urazov »

Hello!

I have a report with a number of bands. I want one of them to be printed on every pages except last one. So, I use property PrintOn and set it to Except Last Page.
It works fine until I have just one page in a report ( not to much data ). In this case it is printed anyway in spite of the property PrintOn.

What should I do to make it work?

Another decision is to show bands depend on particular condition. But I didn't find the way how to do it in designer. Please let me know how can I do it if it is possible.

Thanks in advance.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

PrintOn property

Post by Ivan »

Hello,

[quote="vitaliy".urazov]I have a report with a number of bands. I want one of them to be printed on every pages except last one. So, I use property PrintOn and set it to Except Last Page.
It works fine until I have just one page in a report ( not to much data ). In this case it is printed anyway in spite of the property PrintOn.[/quote]
We made some improvements in that direction.
Please check the next prerelease build from 20-Jul-2011 when it will be available and let us know about the result.

[quote="vitaliy".urazov]Another decision is to show bands depend on particular condition. But I didn't find the way how to do it in designer. Please let me know how can I do it if it is possible.[/quote]
You can use the Condition property of the band.

Thank you.
vitaliy.urazov
Posts: 47
Joined: Thu Jul 14, 2011 6:09 pm

PrintOn property

Post by vitaliy.urazov »

Ivan wrote:Hello,

[quote="vitaliy".urazov]Another decision is to show bands depend on particular condition. But I didn't find the way how to do it in designer. Please let me know how can I do it if it is possible.
You can use the Condition property of the band.

Thank you.[/quote]

Can you give me an example how to use conditions to hide band? for instance, at the first page.
I know that i can use conditions for only apply styles. Isn't it right?

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

PrintOn property

Post by HighAley »

Hello, Vitaliy.
[quote="vitaliy".urazov]
Can you give me an example how to use conditions to hide band? for instance, at the first page.
I know that i can use conditions for only apply styles. Isn't it right?[/quote]

There is an 'Component is Enabled' checkbox in Highlight condition. If condition is false and this checkbox is not selected then the band will not be shown.

Thank you.
vitaliy.urazov
Posts: 47
Joined: Thu Jul 14, 2011 6:09 pm

PrintOn property

Post by vitaliy.urazov »

HighAley wrote:Hello, Vitaliy.
[quote="vitaliy".urazov]
Can you give me an example how to use conditions to hide band? for instance, at the first page.
I know that i can use conditions for only apply styles. Isn't it right?
There is an 'Component is Enabled' checkbox in Highlight condition. If condition is false and this checkbox is not selected then the band will not be shown.

Thank you.[/quote]

Thank you very much!!! But it doesn't work again !!!
My expression in Conditions is PageNumber == TotalPageCount
Where am I wrong?
Attachments
1154.testFooter2.mrt
(15 KiB) Downloaded 774 times
vitaliy.urazov
Posts: 47
Joined: Thu Jul 14, 2011 6:09 pm

PrintOn property

Post by vitaliy.urazov »

It seems like IsLastPage gets wrong result!!!

It could be a reason of all problems?

Please, try attached in previous post report to test this case.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

PrintOn property

Post by Vladimir »

Hello,

About the condition (PageNumber == TotalPageCount): we made some fixes, updates will be available in the next prerelease build.
About the IsLastPage: the problem was reproduced, for its work you need to enable the DoublePass property, but his work is not yet implemented in Reports.Fx, we added this task to our to-do list.

Thank you.
vitaliy.urazov
Posts: 47
Joined: Thu Jul 14, 2011 6:09 pm

PrintOn property

Post by vitaliy.urazov »

Vladimir wrote:Hello,

About the IsLastPage: the problem was reproduced, for its work you need to enable the DoublePass property, but his work is not yet implemented in Reports.Fx, we added this task to our to-do list.

Thank you.
Hello,

I don't understand, does it mean that this property won't work properly in the next build?

Thanks
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

PrintOn property

Post by Ivan »

Hello,

We made some improvements in our code.
Now the NumberOfPass property of report is added.
The patch will be available in the next prerelease build.

The IsFirstPage, IsFirstPageThrough, IsLastPage, IsLastPageThrough system variables provide incorrect results when one pass. It is required to set the NumberOfPass property to DoublePass if this variables are used.

Thank you.
vitaliy.urazov
Posts: 47
Joined: Thu Jul 14, 2011 6:09 pm

PrintOn property

Post by vitaliy.urazov »

Ivan wrote:Hello,

We made some improvements in our code.
Now the NumberOfPass property of report is added.
The patch will be available in the next prerelease build.

The IsFirstPage, IsFirstPageThrough, IsLastPage, IsLastPageThrough system variables provide incorrect results when one pass. It is required to set the NumberOfPass property to DoublePass if this variables are used.

Thank you.
Thanks for replay.
When should we wait new prerelease build?
Locked