ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Design.Win Assembly / GrapeCity.ActiveReports.Design Namespace / Designer Class / SaveReport Method / SaveReport(XmlWriter) Method
The writer used to save the report.
Example

In This Topic
    SaveReport(XmlWriter) Method
    In This Topic
    Saves a report XML layout to the specified writer.
    Syntax
    'Declaration
     
    Public Overloads Sub SaveReport( _
       ByVal writer As XmlWriter _
    ) 
    public void SaveReport( 
       XmlWriter writer
    )

    Parameters

    writer
    The writer used to save the report.
    Remarks
    This method allows saving the report's XML layout directly to an XmlWriter, providing flexibility in how and where the report is saved. It checks for a null XmlWriter to avoid exceptions and delegates the save operation to the implementation layer, which handles the serialization of the report layout.
    Example
    The following example demonstrates how to use an XmlWriter to save a report:
    using (var stream = new FileStream("path/to/your/report.rdlx", FileMode.Create))
    using (var writer = XmlWriter.Create(stream))
    {
    	designer.SaveReport(writer);
    }
    See Also