Spread for ASP.NET 7.0 Product Documentation
SaveToTemplate Method
See Also  Example Support Options
FarPoint.Web.Chart Assembly > FarPoint.Web.Chart Namespace > FpChart Class : SaveToTemplate Method


stream
The stream to save the template to.

Glossary Item Box

Saves the chart model and view type to a template in the specified stream.

Syntax

Visual Basic (Declaration) 
Public Sub SaveToTemplate( _
   ByVal stream As Stream _
) 
Visual Basic (Usage)Copy Code
Dim instance As FpChart
Dim stream As Stream
 
instance.SaveToTemplate(stream)
C# 
public void SaveToTemplate( 
   Stream stream
)

Parameters

stream
The stream to save the template to.

Example

This example uses the SaveToTemplate method.
C#Copy Code
string f;
f = "c:\\chart.xml";
System.IO.FileStream s = new System.IO.FileStream(f, IO.FileMode.OpenorCreate, IO.FileAccess.ReadWrite);
FpChart1.SaveToTemplate(s);
Visual BasicCopy Code
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)

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.