ActiveReports 13
SaveLayout(String) Method
Example 

GrapeCity.ActiveReports Assembly > GrapeCity.ActiveReports Namespace > SectionReport Class > SaveLayout Method : SaveLayout(String) Method
Name of the file where the report's layout will be saved.

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

Syntax
'Declaration
 
Public Overloads Sub SaveLayout( _
   ByVal fileName As String _
) 
public void SaveLayout( 
   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
private void saveRPX()
{
    SectionReport1 rpt = new SectionReport1();
    rpt.Run();    
    rpt.SaveLayout(Application.StartupPath + "\\NewRPX.RPX");
}
Dim rpt As New SectionReport1()
Private Sub saveRPX()
    rpt.Run()        
    rpt.SaveLayout(Application.StartupPath + "\\NewRPX.RPX")
End Sub
See Also

Reference

SectionReport Class
SectionReport Members
Overload List

Concepts

Scripting