0

我正在使用 SQL Server 报告服务。我需要更改表达式中使用的参数的颜色。我不想改变整个表情的颜色,因此请告诉我最好的方法。

="Population Statistics for"  + Parameters!TotalPatientCntInPractice.Label

我只想改变颜色Parameters!TotalPatientCntInPractice.Label

4

3 回答 3

3

Assuming you have SSRS 2008 or above, you will need to set up multiple placeholders in your textbox.

See Formatting Text and Placeholders.

Right-click anywhere in the text box and select Insert Placeholder. In the Placeholder Properties dialog box, you can specify an expression as the value of your placeholder.

These allow you to have separate text sections in one textbox.

Once you have these placeholders set up in your textbox, you can apply different formatting to each placeholder, including a different colour to the placeholder which holds your parameter label expression.

If your using 2005 or below, your only really option will be to use two textboxes as suggested by @Yakyb in the comments.

于 2013-07-31T10:16:42.047 回答
0

您是否尝试过按照以下教程配置使用另一个样式表? http://www.wiseowl.co.uk/blog/s296/css-parameters.htm

然后从那里样式 .TotalPatientCntInPractice.Label ......

希望能帮助到你...

于 2013-07-31T10:01:47.270 回答
0

除了其他选项外,您还可以继续使用单个占位符,并在 HTML 标记内以特定颜色设置要设置的文本,并将 Color 属性设置为您喜欢的任何颜色。您需要告诉 RS 将 HTML 标记解释为样式。这会导致该字段被评估为 HTML。http://msdn.microsoft.com/en-us/library/cc627491(v=sql.100).aspx

于 2013-07-31T17:22:38.977 回答