The following code sample shows how to read the HTML code of a saved report and display it on a page. It uses a Literal control with ID set to ltrReportHTML to do so:
[C#]
using CMS.Reporting;
...
// Saved report id int mSavedReportId = 10;
// Saved report info object SavedReportInfo sri = null;
// Get saved report info by id sri = SavedReportInfoProvider.GetSavedReportInfo(mSavedReportId);
// If saved report exists if (sri != null) { // Set saved report HTML to the literal control text ltrReportHTML.Text = sri.SavedReportHTML; } |
Page url: http://devnet.kentico.com/docs/5_5r2/devguide/index.html?api_getting_html_code_of_a_saved_report.htm