Article ID: 161183
Article Last Modified on 7/13/2004
WITH thisform.Olecontrol1
.NumPoints = reccount()
.NumSets = 1
.Autoinc = 1
.GraphTitle = "Employees by City"
.Labels = 1
.FontUse = 2
.FontSize = 200
ENDWITH
GO TOP
* Add the Data for each bar
DO WHILE !EOF()
ThisForm.OleControl1.GraphData = cnt
SKIP
ENDDO
GO TOP
* Add the label for each bar
DO WHILE !EOF()
ThisForm.OleControl1.LabelText = City
SKIP
ENDDO
WITH ThisForm.OleControl1
.ThisSet = 1
.GraphType = 4
.DrawMode = 2
.Visible = .T.
ENDWITH
146219 How To Register an ActiveX Control (.ocx) Manually
Keywords: kbhowto kbinterop kbautomation kb3rdparty KB161183