How to use IsFirstPage - IsLastPage - TotalPageCount
How to use IsFirstPage - IsLastPage - TotalPageCount
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
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
Do not print only one-page reports
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to use IsFirstPage - IsLastPage - TotalPageCount
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.
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
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
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
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;
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
"Text1" should not be printed in *1-page* reports only.
But in *multi-page* reports, it should be printed on all pages.
But in *multi-page* reports, it should be printed on all pages.
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to use IsFirstPage - IsLastPage - TotalPageCount
Hello,
Please send us a sample report with test data that reproduces the issue for analysis.
Thank you.
Please send us a sample report with test data that reproduces the issue for analysis.
Thank you.
Re: How to use IsFirstPage - IsLastPage - TotalPageCount
Hello,
Thank you for your answer
Thank you for your answer
- Attachments
-
- FACTOR000.mrt
- (25.68 KiB) Downloaded 172 times
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am