开发者

SSRS: How to modify text contents programmatically?

开发者 https://www.devze.com 2023-02-28 07:20 出处:网络
I have a Windows Forms application, using a开发者_如何学JAVA Report Viewer. I have a text label that I\'d like to change based on the data. Is there a way to do this?

I have a Windows Forms application, using a开发者_如何学JAVA Report Viewer. I have a text label that I'd like to change based on the data. Is there a way to do this?

EDIT: To clarify - the text string is not directly from the database but is based on a flag in the database.


You could do this with a formula in the text box. Depending on what you need that could be a simple IIF or a select case statement. To put a formula into a text box just right click on the box and select properties, under the general tab there is a field that says value with a “FX” symbol next to it. If you click on that it will show you the formula editor

(Before anyone says I know its not really FX but I cant be bothered to find the font/code to get the formula symbol!)

0

精彩评论

暂无评论...
验证码 换一张
取 消