ActiveReports 6 Online Help
LoadStyles(Stream) Method
Example 

The specified external stream.
Loads an external stylesheet to use with the report from a stream.
Syntax
'Declaration
 
Public Overloads Sub LoadStyles( _
   ByVal inStream As Stream _
) 
public void LoadStyles( 
   Stream inStream
)

Parameters

inStream
The specified external stream.
Example
Dim s As New System.IO.MemoryStream
Dim report1 As New ActiveReport
'save stylesheet to stream
report1.SaveStyles(s)  
'change position of read stream
s.Position = 0  
Dim report2 As New ActiveReport
'load report's stylesheet from stream
report2.LoadStyles(s)
System.IO.MemoryStream s = new System.IO.MemoryStream();
ActiveReport report1 = new ActiveReport();
//save stylesheet to stream
report1.SaveStyles(s);  
//change position of read stream
s.Position = 0;  
ActiveReport report2 = new ActiveReport();
// load report's stylesheet from stream
report2.LoadStyles(s);
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ActiveReport Class
ActiveReport Members
Overload List

Send Feedback