|
||
|
API examples for newer versions Please visit the latest API Examples documentation to view API examples for newer versions of Kentico. |
The following example inserts elements into the layout of a report.
private bool InsertElementsToLayout() ReportGraphInfo graph = ReportGraphInfoProvider.GetReportGraphInfo("MyNewGraph"); if (graph != null) report.ReportLayout += "<br/>%%control:Report" + ReportItemType.Graph + "?" + report.ReportName + "." + graph.GraphName + "%%<br/>"; } if (table != null) report.ReportLayout += "<br/>%%control:Report" + ReportItemType.Table + "?" + report.ReportName + "." + table.TableName + "%%<br/>"; } if (value != null) report.ReportLayout += "<br/>%%control:Report" + ReportItemType.Value + "?" + report.ReportName + "." + value.ValueName + "%%<br/>"; } |