PDA

View Full Version : فرستادن مقدار دلخواه در Textbox - Microsoft Report



sajjadrad
شنبه 01 مرداد 1390, 13:19 عصر
سلام دوستان
من میخوام برای یه Textbox در Microsoft Report در یک شرط یه مقدار دلخواه بفرستم.
درصورتی که یک فیلد مقدار 1 رو داشت یک عنوان و اگه مقدار 0 رو داشت عنوان دیگه ای رو بگیره.
به همین دلیل در قسمت set expression for value از کد زیر استفاده کردم :


=IIf(Fields!archive="1","hi","bye")


اما همش خطا زیر رو میده:


Error 1 The Value expression for the textrun ‘Textbox3.Paragraphs[0].TextRuns[0]’ contains an error: [BC30518] Overload resolution failed because no accessible '=' can be called with these arguments:
'Public Shared Operator =(a As String, b As String) As Boolean': Value of type 'Microsoft.ReportingServices.ReportProcessing.Repo rtObjectModel.Field' cannot be converted to 'String'. C:\Users\SAJJAD\Documents\Visual Studio 2010\Projects\test


مشکل از کجاست؟
آیا کد من درسته؟

مرسی