problem with DateTime (ASP.Net)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Leszek
Newbie
Newbie
Posts: 7
Joined: Fri Dec 07, 2007 12:00 am

problem with DateTime (ASP.Net)

Post by Leszek » Tue Feb 26, 2008 4:17 pm

Hi,
I have problem with dataset (ASP.Net):

DataView dv = new DataView(ds.Tables[2]);


Steema.TeeChart.Chart ch1 = myChart1.Chart;

Steema.TeeChart.Styles.Line s1 = new Steema.TeeChart.Styles.Line(ch1);
ch1.Series.Add(s1);

ch1.Axes.Bottom.Labels.DateTimeFormat = "dd/MM/yyyy hh:mm:ss";
s1.YValues.DataMember = "Value";
s1.XValues.DateTime = true;
s1.XValues.DataMember = "ReadingTime";
// ch1.Series[0].SeriesData = ds.Tables[2].Columns["ReadingTime"].ToString();
s1.DataSource= dv; // here is error
s1.CheckDataSource();

Error message:
"Input string was not in a correct format".

I have no idea why is this error.
Similar code in Windows Forms is working.
please - help :)
Regards
Leszek

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Feb 27, 2008 10:30 am

Hi Leszek,

Could you please try doing as in the example Christopher Ireland posted here?

You may also be interested in checking the example pw posted here on the 6th of February 2006.

If the problem persists, could you please post or send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Leszek
Newbie
Newbie
Posts: 7
Joined: Fri Dec 07, 2007 12:00 am

Post by Leszek » Wed Feb 27, 2008 11:51 am

Thanks Narcis,
I forgot to set type (DateTime) in datasource.
Now is working
Regards.
Leszek

Post Reply