LoadTemplate
Overview | Properties | Methods
Loads a template into a pie chart.
Syntax
long = PieChartObject.LoadTemplate(FileName As String)
The LoadTemplate method syntax has the following parts:
Part |
Description |
FileName |
The name of the template to load. |
long |
Returns a long indicating the success or failure of the operation. Zero (0) is returned if successful, otherwise a non-zero value is returned. |
Returns
A long which indicates the success/failure of the operation. Zero (0) is returned if successful, otherwise a non-zero value is returned. If an error occurs you can use this return value as the argument for GetErrorText in order to retrieve a relevant text error message, or alternatively you can rem out the "On Error Resume Next" statement and observe the thrown exception for a description of the error.
Remarks
Templates define chart characteristics such as the title, default textures and colors for data elements (pie slices), labels, lighting properties, etc. Use the Template Creator to create or change templates for use with the Dundas Pie Chart Server control.
Call LoadTemplate BEFORE you set the Title property or use any of the object's methods, otherwise the default template values will overwrite your properties/data.
For a description of the steps which should be followed to create a pie chart and the order in which they should be performed see the Dundas Pie Chart Server Control Overview.
See Also: Template Creator Overview | DirTemplate