将鼠标悬停在ssrs中的图像上时,如何格式化显示在工具提示表达式中的文本?

时间:2019-07-10 16:34:03

标签: text reporting-services tooltip

我试图将描述性文字悬停在图像上时显示在工具提示上。但是,文本在整个屏幕的窗口中以单行显示。如何添加换行符并控制工具提示表达式中的文本字体/大小。同样,需要显示工具提示窗口,直到用户将鼠标移离图像为止。可以使用html或java表达式完成此操作吗?我最好尝试用所需的文本作为子组创建一个小的可折叠的Tablix吗?

我正在使用Report Builder 3.0,表达式如下:

="Description: All trees or conditions inspected that yield a 
  rating of 10, 11, or 12, should have a Work Order created. 
  There are Inspections of priority A or B that do not have a 
  Work Order.  
  Logic: INSPs are selected for this metric if the following is true:

 -The INSP has a Risk Rating of 10,11,12 from RISKASSESSMENT_EVW

 -The INSP does not have a matching Inspection Global ID in WORKORDER_EVW

 -The INSP has an Inspection Date that is NOT NULL in INSPECTION_EVW"

我想在每个逻辑描述符之后换行。

1 个答案:

答案 0 :(得分:1)

您可以通过插入VB常数vbcrlf来添加换行符,该常数基本上是老式的回车符,换行符插入。用引号将每行分开,并使用&符号进行连接。因此该表达式将类似于以下内容。

="Description: All trees or conditions inspected that yield a rating of 10, 11, or 12, 
should have a Work Order created. There are Inspections of priority A or B that do not 
have a Work Order." & vbcrlf & 
"Logic: INSPs are selected for this metric if the following is true: " & vbcrlf & 
" -The INSP has a Risk Rating of 10,11,12 from RISKASSESSMENT_EVW" & vbcrlf & 
" -The INSP does not have a matching Inspection Global ID in WORKORDER_EVW" & vbcrlf & 
" -The INSP has an Inspection Date that is NOT NULL in INSPECTION_EVW"