ActiveReports3 Request technical support
LoadLayout(String) Method
See Also  Example


fileName
Report layout (RPX) file name.
Retrieves a report XML layout from a file and loads it into a report object.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub LoadLayout( _
   ByVal fileName As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As ActiveReport3
Dim fileName As String
 
instance.LoadLayout(fileName)
C# 
public void LoadLayout( 
   string fileName
)

Parameters

fileName
Report layout (RPX) file name.

Example

C#Copy Code
private void loadRPX()
{    
   ActiveReport1 rpt =
new ActiveReport1();
   rpt.LoadLayout(Application.StartupPath +
"\\NewRPX.RPX");
   viewer1.Document = rpt.Document;
   rpt.Run();
}
Visual BasicCopy Code
Dim rpt As New ActiveReport1()
Private Sub loadRPX()
    rpt.LoadLayout(Application.StartupPath + "\\NewRPX.RPX")
    Viewer1.Document = rpt.Document
    rpt.Run()
End Sub

Remarks

This method is typically used to load stand-alone report layouts which can be distributed and updated separately from the application's assemblies.

When using this method, any code behind the report is ignored. To embed code in the report, use Scripting.

See Also