ActiveReports 8
LoadLayout(Stream,ArrayList) Method
See Also 
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports Namespace > SectionReport Class > LoadLayout Method : LoadLayout(Stream,ArrayList) Method

stream

A stream that contains a valid report XML layout.

errors

An array containing any errors that occur during LoadLayout.

Glossary Item Box

This overload has been deprecated. Please use the new LoadLayout(XmlReader) overload.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub LoadLayout( _
   ByVal stream As System.IO.Stream, _
   ByRef errors As ArrayList _
) 
C# 
public void LoadLayout( 
   System.IO.Stream stream,
   out ArrayList errors
)

Parameters

stream

A stream that contains a valid report XML layout.

errors

An array containing any errors that occur during LoadLayout.

Remarks

This method can be executed for any existing report class (code type). However, in such cases, all the layout related information defined in existing report class is cleared and gets updated with the loaded RPX file content. Due to this reason, any code (example: Me.textBox1.Text = "ABC") that directly tries to access a control on a report and is defined in the existing report class is ignored. For event related code implementations, it is possible to embed the code in RPX file. In this case, please use Scripting.

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