Conditionally disabling text components in Table of Contents
Posted: Sat Oct 04, 2014 12:44 am
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?
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?