我需要抓住從我的報告2日期/時間參數中的月和年信息(開始日期和結束日期)到一個文本框。SSRS - 表達預警日期時間格式
我用下面的表達 -
=MonthName(Month(Parameters!StartDate.Value)) & Format(Year(Parameters!EndDate.Value)) & " to " & MonthName(Month(Parameters!EndDate.Value)) & Format(Year(Parameters!EndDate.Value))
把它弄成如2012年3月至2012年8月
它的工作原理,但我不斷收到以下警告:
[rsRuntimeErrorInExpression] The Value expression for the textrun ‘Textbox18.Paragraphs[0].TextRuns[0]’ contains an error: Conversion from type 'Date' to type 'Integer' is not valid.
任何想法?
謝謝!
嗯表達,看到這個帖子 - http://stackoverflow.com/a/1508591/763029爲一般的解決方法的想法 – Coffee 2013-03-14 23:37:20