Spread for ASP.NET 11 Product Documentation
SaveToTemplate Method
Example 


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

Parameters

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

Reference

FpChart Class
FpChart Members