using datetime with colorline tool
Posted: Tue Sep 11, 2007 9:33 pm
Hello,
I'm trying to draw a colored line at a specific point on the x-axis of my chart using the colorline tool. The x-axis is date and time, which is giving me problems. I think this should work..
Line 82: colorLine1.Axis = WebChart1.Chart.Axes.Bottom
Line 83: colorLine1.Pen.Color = Drawing.Color.Yellow
Line 84: colorLine1.Value = "8/21/2007 11:14:00 AM"
Line 85:
But I get the following error..
Exception Details: System.FormatException: Input string was not in a correct format.
Can you tell me what I'm doing wrong?
cheers, Paul
I'm trying to draw a colored line at a specific point on the x-axis of my chart using the colorline tool. The x-axis is date and time, which is giving me problems. I think this should work..
Line 82: colorLine1.Axis = WebChart1.Chart.Axes.Bottom
Line 83: colorLine1.Pen.Color = Drawing.Color.Yellow
Line 84: colorLine1.Value = "8/21/2007 11:14:00 AM"
Line 85:
But I get the following error..
Exception Details: System.FormatException: Input string was not in a correct format.
Can you tell me what I'm doing wrong?
cheers, Paul