Page 1 of 1

How to use IsFirstPage - IsLastPage - TotalPageCount

Posted: Tue Sep 22, 2020 5:27 am
by yalisalar
Hi
I do not want "Text1" to be printed in single page reports. But be printed in multi-page reports.
I used the following code to do this
But I do not know why the result is not correct ?!

1:
if (TotalPageCount==1)
Text1.Enabled=false;

2:
if (IsFirstPage==true && IsLastPage==true)
Text1.Enabled=false;

The result of the above two codes is always FALSE !!!
Please guide me

Re: How to use IsFirstPage - IsLastPage - TotalPageCount

Posted: Tue Sep 22, 2020 6:59 am
by yalisalar
Do not print only one-page reports

Re: How to use IsFirstPage - IsLastPage - TotalPageCount

Posted: Tue Sep 22, 2020 3:16 pm
by Lech Kulikowski
Hello,

Please try to use the Condition with the "Component Is Enabled" option to hide Text component.
Also, you can set the PrintOn="Except First and Last Page" property.

Thank you.

Re: How to use IsFirstPage - IsLastPage - TotalPageCount

Posted: Wed Sep 23, 2020 11:04 am
by yalisalar
Hello ,
Thank you for your answer.

"Please try to use the Condition with the "Component Is Enabled" option to hide Text component."
Sorry, I do not understand what you mean.
You may explain the action with an example.


" Also, you can set the PrintOn="Except First and Last Page" property."
Unfortunately, I have tried this method before.
Only works properly on *1-page* reports!

For example, in a 4-page report, this is how it works :
PAGE 1 = NO! ------------- PAGE 2 = OK ------------- PAGE 3 = OK ------------- PAGE 4 = NO!

But I want it to be printed in 4-pages.
PAGE 1 = OK ------------- PAGE 2 = OK ------------- PAGE 3 = OK ------------- PAGE 4 = OK

Re: How to use IsFirstPage - IsLastPage - TotalPageCount

Posted: Wed Sep 23, 2020 11:08 am
by yalisalar
Excuse me, what is wrong with these codes?
They are logically correct.
But I do not know why they do not act ?!

1:
if (TotalPageCount==1)
Text1.Enabled=false;

2:
if (IsFirstPage==true && IsLastPage==true)
Text1.Enabled=false;

Re: How to use IsFirstPage - IsLastPage - TotalPageCount

Posted: Wed Sep 23, 2020 11:11 am
by yalisalar
"Text1" should not be printed in *1-page* reports only.
But in *multi-page* reports, it should be printed on all pages.

Re: How to use IsFirstPage - IsLastPage - TotalPageCount

Posted: Wed Sep 23, 2020 6:29 pm
by Lech Kulikowski
Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.

Re: How to use IsFirstPage - IsLastPage - TotalPageCount

Posted: Thu Sep 24, 2020 4:41 am
by yalisalar
Hello,

Thank you for your answer

Re: How to use IsFirstPage - IsLastPage - TotalPageCount

Posted: Thu Sep 24, 2020 9:47 am
by Lech Kulikowski
Hello,

Please send us your request on support@stimulsoft.com

Thank you.