ActiveReports 8
SaveLayout(String) Method
See Also  Example
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports Namespace > SectionReport Class > SaveLayout Method : SaveLayout(String) Method

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

Glossary Item Box

This overload has been deprecated. Please use the new SaveLayout(XmlWriter) overload.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub SaveLayout( _
   ByVal fileName As System.String _
) 
C# 
public void SaveLayout( 
   System.string fileName
)

Parameters

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

Remarks

The SaveLayout(String) method uses the 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#Copy Code
private void saveRPX()
{
    SectionReport1 rpt = new SectionReport1();
    rpt.Run();    
    rpt.SaveLayout(Application.StartupPath + "\\NewRPX.RPX");
}
VB.NETCopy Code
Dim rpt As New SectionReport1()
Private Sub saveRPX()
    rpt.Run()        
    rpt.SaveLayout(Application.StartupPath + "\\NewRPX.RPX")
End Sub

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also