Spread for ASP.NET 11 Product Documentation
LoadFromTemplate Method
Example 


FarPoint.Web.Chart Assembly > FarPoint.Web.Chart Namespace > FpChart Class : LoadFromTemplate Method
The stream which contains the template.
Loads a chart model and the chart view type from a template in the specified stream.
Syntax
'Declaration
 
Public Sub LoadFromTemplate( _
   ByVal stream As Stream _
) 
'Usage
 
Dim instance As FpChart
Dim stream As Stream
 
instance.LoadFromTemplate(stream)
public void LoadFromTemplate( 
   Stream stream
)

Parameters

stream
The stream which contains the template.
Example
This example uses the LoadFromTemplate method.
string f;
f = "c:\\chart.xml";
System.IO.FileStream s = new System.IO.FileStream(f, IO.FileMode.Open, IO.FileAccess.ReadWrite);
FpChart1.LoadFromTemplate(s);  
Dim f As String
f = "c:\chart.xml"
Dim s As New System.IO.FileStream(f, IO.FileMode.OpenOrCreate, IO.FileAccess.ReadWrite)
FpChart1.LoadFromTemplate(s)
See Also

Reference

FpChart Class
FpChart Members