Microsoft KB Archive/275649

= SAMPLE: ChrtSmpl.exe Demonstrates Use of the Visual Basic 6.0 MSChart Control =

Article ID: 275649

Article Last Modified on 8/9/2004

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q275649



SUMMARY
The ChrtSmpl.exe sample demonstrates how to use the Visual Basic 6.0 version of the MSChart control to graphically display numeric information. The MSChart control allows you to plot data in charts according to your specifications. To create a chart, you can set data in the control's Properties page, or you can retrieve data from an external source, such as a Microsoft Excel spreadsheet. To reference the path to the Excel workbook that contains the worksheet, use the GetObject method.

The MSChart control has many visible parts, all of which can be programmed. You can use the MSChart control's three-dimensional (3D) chart features to enhance the appearance of a report. To see these features, either set the ChartType property to a valid 3D type or set the Chart3D property to True. Note that you cannot create a 3D pie chart, because the MSChart control does not contain a ChartType property for 3D pie charts.



MORE INFORMATION
The following file is available for download from the Microsoft Download Center:

ChrtSmpl.exe

Release Date: August 24, 2001

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. The ChrtSmpl.exe file contains the following files:

NOTE: The ChartType property (VtChChartType) only has constants for the following:

