Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date pickers and charts in a web page
Message
De
10/06/1999 14:09:03
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Titre:
Date pickers and charts in a web page
Divers
Thread ID:
00228508
Message ID:
00228508
Vues:
44
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
Fil
Voir

Click here to load this message in the networking platform