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


fileName
Name of the file where the report's layout will be saved.
Saves a report's XML layout to the specified file.

Syntax

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

Parameters

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

Example

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

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.

See Also