problem with datetimepicker control

Stimulsoft Reports.WPF discussion
Antony_87
Posts: 5
Joined: Tue Oct 30, 2012 7:06 am

problem with datetimepicker control

Post by Antony_87 »

I use WPF designer (version 2012.2) for report with DateTimePickerControl placed on the form
I try to change date value of this control but nothing happens - it shows default value

Code: Select all

DateTimePickerControl1.Value = System.DateTime.Now.AddYears(-50);
So i also try to set custom format but it doesn't work

Code: Select all

DateTimePickerControl1.Format = DateTimePickerFormat.Custom;
DateTimePickerControl1.CustomFormat="yyyyMMdd";
what's wrong ?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: problem with datetimepicker control

Post by HighAley »

Hello.

Please, try to set the Today property of the DateTimePickerControl to False.

Thank you.
Antony_87
Posts: 5
Joined: Tue Oct 30, 2012 7:06 am

Re: problem with datetimepicker control

Post by Antony_87 »

sorry but I see no effect
when i set Today = false - control doesn't wok as I expect - I can't set data
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: problem with datetimepicker control

Post by HighAley »

Hello.

Please, describe how to reproduce your issue.
Where do you try to change Value of the DateTimePickerControl1.

Thank you.
Antony_87
Posts: 5
Joined: Tue Oct 30, 2012 7:06 am

Re: problem with datetimepicker control

Post by Antony_87 »

I have attached the example

all I need: set up datetimepicker value from code (for example in form OnLoad Event or in some button event)
in this example I try to change CustomFormat and set initial date for control (form OnLoad event)
and I try to change date in button OnClick event

as to example - it works fine if I use win-forms designer for preview
it doesn't work if i use WPF designer for preview
Attachments
Report.mrt
(4.8 KiB) Downloaded 941 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: problem with datetimepicker control

Post by Alex K. »

Hello,

We need some time for fix the issue.

Thank you.
Antony_87
Posts: 5
Joined: Tue Oct 30, 2012 7:06 am

Re: problem with datetimepicker control

Post by Antony_87 »

Ok
Thank's a lot
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: problem with datetimepicker control

Post by Alex K. »

Hello,

We will let you know when the solution will be available.

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: problem with datetimepicker control

Post by Alex K. »

Hello,

The issue with the value of DateTimePicker control is fixed.
Unfortunately, but set custom format in wpf version does not possible.

Thank you.
Antony_87
Posts: 5
Joined: Tue Oct 30, 2012 7:06 am

Re: problem with datetimepicker control

Post by Antony_87 »

Thank for this good news

It means that we need to download product from Stimulsoft site (in registred user area) once again?
we see only files with date 2012.10.26
Post Reply