Problems Datetime

Stimulsoft Reports.NET discussion
Post Reply
RVALENZUELA
Posts: 4
Joined: Thu Nov 15, 2012 12:40 pm

Problems Datetime

Post by RVALENZUELA »

Hello

I have the following problem, I have an application in. Net which prints a report with date range.
I have a datetime variable in the report which accepts user.

when compiling the report happened to a date variable

EJ:
'Dim As DateTime = DateTime.Now fec
FEC = Date.Now
FEC = DateAdd ("m", -1, fec)
FEC = DateSerial (Year (FEC), Month (FEC) + 0, 1)

report.Item ("FechaIni") = fec

report.render
.........



The report modifies the variable ("FechaIni") I can even show on the report, but the change is not reflected in the
datetimepicker.


I hope you can help me Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problems Datetime

Post by HighAley »

Hello.

What datetimepicker do you use? On Form or do you use variable requested by user?
Do you Compile the report?
Try to use next code:

Code: Select all

report.Compile()
report.Item ("FechaIni") = fec
report.Render()
Please, send us your report template for analysis.

Thank you.
Post Reply