0
報表中有很多字段,我嘗試使用以下表達式來進行文本對齊(這樣我可以在其他字段中複製),但它不工作,並給出錯誤信息。Me.Value不適用於文本對齊表達式 - SSRS 2008 R2
=IIF(IsNothing(Me.Value), "Center", "Right")
錯誤:
The TextAlign expression for the paragraph ‘MyPO.Paragraphs[0]’ contains "Me.Value". "Me.Value" is not valid in the context of a paragraph.
我可以使用"Fields!MyPO.Value"
代替使用"Me.Value"
但我會必須寫爲每個字段分開的表達。
我只是想知道這是否仍然是SSRS 2008 R2中的一個錯誤,因爲以下表達式對填充和顏色工作正常,但"Me.Value"
不適用於文本對齊。
Padding = 2pt, =IIF(Me.Value IS NOTHING , "2pt", "25pt"), 2pt, 2pt
Color = IIF(Me.Value IS NOTHING,"RED","GREEN")
我知道SSRS 2008年和2005年的錯誤已被固定在R2,但必須有一個原因"Me.Value"
不適合文本對齊在R2的工作。
我在報告中顯示' - '爲空值。 – user1263981
是否爲您解決這個問題? – KrazzyNefarious