Spread ASP.NET 6.0 Product Documentation
LoadFromTemplate Method
See Also  Example Send Feedback
FarPoint.Web.Chart Assembly > FarPoint.Web.Chart Namespace > FpChart Class : LoadFromTemplate Method


stream
The stream which contains the template.

Glossary Item Box

Loads a chart model and the chart view type from a template in the specified stream.

Syntax

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

Parameters

stream
The stream which contains the template.

Example

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

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.