Reads the chart property and data settings (chart description) and images from the specified file.
Namespace:
C1.Web.C1WebChartAssembly: C1.Web.C1WebChart.2 (in C1.Web.C1WebChart.2.dll)
Syntax
C# |
---|
public void LoadChartAndImagesFromFile( string filename ) |
Visual Basic |
---|
Public Sub LoadChartAndImagesFromFile ( _ filename As String _ ) |
Parameters
- filename
- Type: System..::..String
String specifying the filename that contains the chart description.
Remarks
This method loads the contents of the specified file in XML format into the chart.
The file should contain the output of a call to SaveChartToFile or SaveChartAndImagesToFile.
If the latter method was used to create the loaded content, then any C1.Win.C1Chart element images
are also reset to the saved values.
Note that only the C1.Win.C1Chart properties and data are loaded by this method.
C1WebChart properties are not loaded by this method.
If an error occurs, an appropriate exception is thrown indicating the cause of error.