Hi, I am building a dynamically sized Table of Contents that could have up to 20 lines of "Contents". I am using the GetAnchorPageNumber(sender.TagValue) method to get the page number of each of the lines of "Contents". To make it dynamically sized I want to disable (hide) the text component for "Page" if the GetAnchorPageNumber(sender.TagValue) values returned are null.
It seems that GetAnchorPageNumber(sender.TagValue) always returns "0" instead of "null" if the AddAnchor tag was not set anywhere in the report.
Below is an image of my Table of Contents.
I want to hide all the "0" values, but I am unsuccessful using Enable/Disable conditions or text formatting conditions to hide these "0" values. Is this possible?
Conditionally disabling text components in Table of Contents
Re: Conditionally disabling text components in Table of Cont
Hello.
Please, try to set the Hide Zeros property to True.
If this does not help we need to see your report template with sample data.
Thank you
Please, try to set the Hide Zeros property to True.
If this does not help we need to see your report template with sample data.
Thank you
Re: Conditionally disabling text components in Table of Cont
This solution works excellently. Thanks for your prompt support!
Re: Conditionally disabling text components in Table of Cont
Hello.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.