See Also

ActiveReport Class  | ActiveReport Members  | Overload List  | Scripting

Language

Visual Basic

C#

Show All

fileName
Name of the file where the report's layout will be saved.
See Also Languages ActiveReports Send feedback to Data Dynamics

SaveLayout(String) Method

Saves a report's XML layout to the specified file.

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

Parameters

fileName
Name of the file where the report's layout will be saved.

Remarks

The SaveLayout method uses UTF-16 encoding when you save to a stream, and UTF-8 encoding when you save to a file.

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

Example

[C#] 

private void saveRPX() 

    ActiveReport1 rpt = new ActiveReport1(); 
    rpt.Run();     
    rpt.SaveLayout(Application.StartupPath + "\\NewRPX.RPX"); 
}

[Visual Basic] 

Dim rpt As New ActiveReport1()
Private Sub saveRPX()
    rpt.Run()
    rpt.SaveLayout(Application.StartupPath + "\\NewRPX.RPX")
End Sub

See Also

ActiveReport Class  | ActiveReport Members  | Overload List  | Scripting

 

 


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