How to save the rendered report from SharpShooterReports.Silverlight in the rsd format

The ReportViewer control in SharpShooterReports.Silverlight component by default does not provide the ability to save the rendered report in .rsd format. But what to do if this is necessary? You can easily do it from the code:

Open the ReportService.svc class And reload the following method the following way:

protected override PerpetuumSoft.Reporting.DOM.Document RenderCore(IDictionary<string, object> parameters,string reportName)
{
    var document = base.RenderCore(parameters, reportName);
    PerpetuumSoft.Framework.Serialization.XSerializationManager.Write(
                    document, @"C:/Temp/document.rsd");
    return document;
}

Add Feedback