4ced1c378f224cb49b8d63e538edcafbad0ec301
Guides/Webform-Integration-Sub-Folder.md
| ... | ... | @@ -300,7 +300,8 @@ href="Resources/...." and change them to href="Izenda/Resources/...." |
| 300 | 300 | |
| 301 | 301 | ###Step 7. Copy < Body > Section from Default.master |
| 302 | 302 | |
| 303 | -**a.** Copy the below code from < Body > section from Default.master of webform kit to the < Body > section of Site.master |
|
| 303 | +**a.** Copy the below code from < Body > section from Default.master of webform kit into the < Body > section of Site.master. |
|
| 304 | +Place the copied code between < hr / > and < footer > |
|
| 304 | 305 | |
| 305 | 306 | ```html |
| 306 | 307 | |
| ... | ... | @@ -415,56 +416,7 @@ Add _sitelayout from mvc5r3\Views\Shared to project’s Views\Shared |
| 415 | 416 | |
| 416 | 417 |  |
| 417 | 418 | |
| 418 | -###Step 8. Copy code from Global.asax except the first line |
|
| 419 | 419 | |
| 420 | -**a.** Copy code from Global.asax except the first line |
|
| 421 | - |
|
| 422 | -###Global.asax from mvc5r3(C♯) |
|
| 423 | - |
|
| 424 | -```csharp |
|
| 425 | - |
|
| 426 | -<%@ Application Codebehind="Global.asax.cs" Inherits="MVC4Razor2.MvcApplication" Language="C#" %> //Copy except this line |
|
| 427 | - |
|
| 428 | -<%@ Import Namespace="Izenda.AdHoc"%> |
|
| 429 | -<%@ Import Namespace="System.IO"%> |
|
| 430 | - |
|
| 431 | -<script runat="server"> |
|
| 432 | - void Application_AcquireRequestState(object sender, EventArgs e) { |
|
| 433 | - CustomAdHocConfig.InitializeReporting(); |
|
| 434 | - } |
|
| 435 | - |
|
| 436 | - [Serializable] |
|
| 437 | - public class CustomAdHocConfig : FileSystemAdHocConfig { |
|
| 438 | - public static void InitializeReporting() { |
|
| 439 | - if (HttpContext.Current.Session == null || HttpContext.Current.Session["ReportingInitialized"] != null) |
|
| 440 | - return; |
|
| 441 | - AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"; |
|
| 442 | - AdHocSettings.SqlServerConnectionString = @"INSERT_CONNECTION_STRING_HERE"; |
|
| 443 | - AdHocSettings.GenerateThumbnails = true; |
|
| 444 | - AdHocSettings.ShowSimpleModeViewer = true; |
|
| 445 | - AdHocSettings.IdentifiersRegex = "^.*[iI][Dd]$"; |
|
| 446 | - AdHocSettings.TabsCssUrl = "/Resources/css/tabs.css"; |
|
| 447 | - AdHocSettings.ReportCssUrl = "../Resources/css/Report.css"; |
|
| 448 | - AdHocSettings.ShowBetweenDateCalendar = true; |
|
| 449 | - AdHocSettings.DashboardViewer = "Dashboards"; |
|
| 450 | - AdHocSettings.ReportViewer = "ReportViewer"; |
|
| 451 | - AdHocSettings.InstantReport = "InstantReport"; |
|
| 452 | - AdHocSettings.ReportDesignerUrl = "ReportDesigner"; |
|
| 453 | - AdHocSettings.DashboardDesignerUrl = "DashboardDesigner"; |
|
| 454 | - AdHocSettings.ReportList = "ReportList"; |
|
| 455 | - AdHocSettings.SettingsPageUrl = "Settings"; |
|
| 456 | - AdHocSettings.ParentSettingsUrl = "Settings"; |
|
| 457 | - AdHocSettings.ResponseServer = "rs.aspx"; |
|
| 458 | - AdHocSettings.ReportsPath = Path.Combine(HttpContext.Current.Server.MapPath("~/"), "Reports"); |
|
| 459 | - AdHocSettings.PrintMode = PrintMode.Html2PdfAndHtml; |
|
| 460 | - AdHocSettings.ChartingEngine = ChartingEngine.HtmlChart; |
|
| 461 | - AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
|
| 462 | - HttpContext.Current.Session["ReportingInitialized"] = true; |
|
| 463 | - } |
|
| 464 | - } |
|
| 465 | -</script> |
|
| 466 | - |
|
| 467 | -``` |
|
| 468 | 420 | |
| 469 | 421 | **b.** Paste it in project’s Global.asax |
| 470 | 422 |