Information générale
Catégorie:
Contrôles ActiveX
Titre:
Date pickers and charts in a web page
I want to build a web page that lets a user select a date so a bar chart appears based on that date. So I'm using the following ActiveX controls:
- Microsoft Chart Control 6.0 (OLEDB)
- Microsoft Date and Time Picker Control 6.0
Then I use a script tag to use the OnLoad event of the page to initialize the controls.
The Date picker isn't safe for initialization and the date control doesn't recognize some properties.
Here's my script's code:
Sub window_onload
' DTPicker.Day = DatePart(d, Date)
' DTPicker.Month = DatePart(m, Date)
' DTPicker.Year = DatePart(yyyy, Date)
MSChart.Stacking = True
' MSChart.Plot.Axis(VtChAxisIdY).AxisTitle.TextLayout.Orientation = VtOrientationHorizontal
MSChart.Plot.Axis(VtChAxisIdX).AxisTitle.Text = Hours
' MSChart.Plot.Axis(VtChAxisIdY).AxisTitle.Text = Items
' MSChart.Title.Text = Rx Test - June 7, 1999
MSChart.Plot.Axis(VtChAxisIdX).AxisGrid.MajorPen.VtColor.Set 100, 100, 100
MSChart.Plot.Axis(VtChAxisIdY).AxisGrid.MajorPen.VtColor.Set 100, 100, 100
end sub
I've commented the lines that don't work. I also removed the double quotes and tags so this message can be sent.
If someone knows a way to use this controls in a web page or an alternate way to do this I would appreciate his/her help.
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement