Last post Dec 07, 2019 12:30 AM by kimolinders
Dec 05, 2019 01:57 AM|kimolinders|LINK
I want to hide text in rdlc report IF text is between [square brackets]. This will allow me to put supplier identifiers between the square brackets without having these identifiers show up on our outgoing documents.
I am a novice in rdlc report development, and am hoping for a string of code which will block the hidden text for the entire document.
Dec 06, 2019 09:48 AM|Yongqing Yu|LINK
Does the bracketed text you mentioned refer to the bracketed text contained in the data source of your report?
As far as I know, if you want to create a public method to determine whether the current text contains brackets and hide them, you need to do the following steps:
You can refer to this link for detailed process : How to use custom assemblies or embedded code in Reporting Services
And here is how to intercept the bracketed content in the string and replace it with other content:
Replace [ ] bracket in a string
Dec 07, 2019 12:30 AM|kimolinders|LINK
Thank you for you solution, I'll try to make this work. And you are correct, the bracketed text is indeed contained in the data source.