2013-05-21 33 views
2

是否可以從表達式中應用樣式?應用表達式中的樣式

我想斜體名稱字段:

=Fields!Text.Value & " - " & Fields!CreatedDate.Value & " " & Fields!Name.Value 

回答

0

爲單個文本框中的每個字段創建佔位符。這使您可以更改每個特定字段的樣式。我在我的博客上有一篇關於此的文章。 http://mrthetrain.wordpress.com/2012/09/14/placeholders-2/

+1

即使您的博客文章從未提及如何插入佔位符。 – StevenWhite

+0

選擇編輯後在文本框內右鍵單擊,而不僅僅是選擇整個文本框。您將獲得「創建佔位符...」選項 –

2

文本框包含textruns。每個textrun都有自己的風格。您需要編輯代碼,使其看起來像這樣:

<Textbox> 
<TextRun> 
    <Value>=Fields!Text.Value & " - " & Fields!CreatedDate.Value & " "</Value> 
</TextRun> 
<TextRun> 
    <Value>=Fields!Name.Value</Value> 
    <Style> 
    <FontStyle>Italic</FontStyle> 
    </Style> 
</TextRun> 
</Textbox> 
相關問題