See Also

ActiveReport Class  | ActiveReport Members  | SaveLayout  | Scripting

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

LoadLayout Method

Retrieves a report XML layout (RPX) from a file, stream or resource.
Retrieves a report XML layout and loads it into a report object.

Overload List

Retrieves a report XML layout from a stream and loads it into a report object.
Retrieves a report XML layout from a file and loads it into a report object.
Retrieves a report XML layout from a resource. For internal use.

Remarks

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  | SaveLayout  | Scripting

 

 


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