776c05f3f772bf5e24b8fbcad4871f5270b6c2f4
API/CodeSamples/NumChartTabs.md
| ... | ... | @@ -0,0 +1,44 @@ |
| 1 | +##About |
|
| 2 | + |
|
| 3 | +NumCharTabs takes an integer (int32) User can customize the number of charts that a report contains. By default, the number of charts is 2 so user can include 2 charts in a report. |
|
| 4 | +However, by changing NumChartTabs setting, multiple charts can be included in a report |
|
| 5 | + |
|
| 6 | +##Example |
|
| 7 | + |
|
| 8 | +```csharp |
|
| 9 | + |
|
| 10 | + public static void InitializeReporting() { |
|
| 11 | + //Check to see if we've already initialized. |
|
| 12 | + if (HttpContext.Current.Session == null || HttpContext.Current.Session["ReportingInitialized"] != null) |
|
| 13 | + return; |
|
| 14 | + //Initialize System |
|
| 15 | + |
|
| 16 | + // |
|
| 17 | + |
|
| 18 | + |
|
| 19 | + AdHocSettings.GenerateThumbnails = true; |
|
| 20 | + AdHocSettings.DashboardViewer = "Dashboards.aspx"; |
|
| 21 | + AdHocSettings.ShowSimpleModeViewer = true; |
|
| 22 | + AdHocSettings.IdentifiersRegex = "^.*[iI][Dd]$"; |
|
| 23 | + AdHocSettings.TabsCssUrl = "Resources/css/tabs.css"; |
|
| 24 | + AdHocSettings.ReportCssUrl = "Resources/css/Report.css"; |
|
| 25 | + AdHocSettings.ShowBetweenDateCalendar = true; |
|
| 26 | + AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
|
| 27 | + //AdHocSettings.PrintMode = PrintMode.Html2PdfAndHtml; |
|
| 28 | + AdHocSettings.ChartingEngine = ChartingEngine.HtmlChart; |
|
| 29 | + |
|
| 30 | + |
|
| 31 | + |
|
| 32 | + HttpContext.Current.Session["ReportingInitialized"] = true; |
|
| 33 | + AdHocSettings.DashboardViewer = "Dash.aspx"; |
|
| 34 | + AdHocSettings.DashboardDesignerUrl = "Dash.aspx"; |
|
| 35 | + |
|
| 36 | + |
|
| 37 | + AdHocSettings.NumChartTabs = 3; // Type an integer. Default value is 2 |
|
| 38 | + |
|
| 39 | + |
|
| 40 | + AdHocSettings.ShowSqlEditor = true; |
|
| 41 | + } |
|
| 42 | + |
|
| 43 | + |
|
| 44 | +``` |
|
| ... | ... | \ No newline at end of file |