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.
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:
Create a custom assembly that includes a method to verify your requirements.
You need to copy the custom assembly to the sql reporting services folder.
Add a reference to the custom assembly in reporting services.
None
0 Points
2 Posts
Hide text in rdlc report IF text is between [square brackets]
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.
Contributor
3710 Points
1043 Posts
Re: Hide text in rdlc report IF text is between [square brackets]
Dec 06, 2019 09:48 AM|Yongqing Yu|LINK
Hi kimolinders,
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
Best Regards,
YongQing.
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
None
0 Points
2 Posts
Re: Hide text in rdlc report IF text is between [square brackets]
Dec 07, 2019 12:30 AM|kimolinders|LINK
Hi YongQing,
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.
Kind regards,
Kimo