a Question for Variable

Stimulsoft Reports.NET discussion
Post Reply
RickyHuang
Posts: 68
Joined: Tue Feb 09, 2010 3:16 am
Location: Taiwan

a Question for Variable

Post by RickyHuang »

in build 2010.2.792.0

i have a variable in report,name is "BegDate" and it is a datetime
i have a control in vb form,name is TwBegDate,it's value is a datetime

my code in vb.net

with rpt
.Dictionary.Variables("BegDate").Value = CDate(TwBegDate.Value)
end with

it can work

but

when i upgrad to 2010.2.800.0

i got an error
『Variable value '2010/10/13 上午 09:12:54'』 is wrong DateTime value

how to fix this error?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

a Question for Variable

Post by Alex K. »

Hello,

Please try check the following code

Code: Select all

With rpt
 .Item("BegDate") = CDate(TwBegDate.Value)
End With
Thank you.
Post Reply