See Also

ActiveReport Class  | ActiveReport Members  | Overload List  | Scripting

Language

Visual Basic

C#

Show All

fileName
Report layout (RPX) file name.
See Also Languages ActiveReports Send feedback to Data Dynamics

LoadLayout(String) Method

Retrieves a report XML layout from a file and loads it into a report object.

[Visual Basic]
Overloads Public Sub LoadLayout( _    ByVal fileName As String _ )
[C#]
public void LoadLayout(    string fileName );

Parameters

fileName
Report layout (RPX) file name.

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.

Example

[C#] 

private void loadRPX() 
{     
    ActiveReport1 rpt = new ActiveReport1(); 
    rpt.LoadLayout(Application.StartupPath + "\\NewRPX.RPX"); 
    viewer1.Document = rpt.Document; 
    rpt.Run(); 
}

[Visual Basic] 

Dim rpt As New ActiveReport1()
Private Sub loadRPX()
    rpt.LoadLayout(Application.StartupPath + "\\NewRPX.RPX")
    Viewer1.Document = rpt.Document
    rpt.Run()
End Sub

See Also

ActiveReport Class  | ActiveReport Members  | Overload List  | Scripting

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.