Example #1
0
    private void displaySavedReport()
    {
        GeneratedReportPart part;

        if (_savedReportId == null)
        {
            throw new ApplicationException(PARAMETER_SAVED_REPORT_ID + " is a required parameter for type 1 report parts");
        }

        part = _generator.GenerateReport(_componentTypeId, _savedReportId.Value);

        renderImage(part.Bytes);
    }
Example #2
0
    private void showHtmlPart(CustomReportComponent reportPart)
    {
        Literal             htmlControl;
        ReportPartGenerator generator;
        GeneratedReportPart part;

        generator = new ReportPartGenerator(_db);
        part      = generator.GenerateReport(reportPart);

        htmlControl      = new Literal();
        htmlControl.Text = part.Html;

        reportPlaceholder.Controls.Add(htmlControl);
    }