11730c0b63295a4339990885b61290859d424a40
API/CodeSamples/RedirectExports.md
| ... | ... | @@ -1,10 +1,10 @@ |
| 1 | -#ReportHeaderImageUrl |
|
| 1 | +#RedirectExports |
|
| 2 | 2 | |
| 3 | 3 | [[_TOC_]] |
| 4 | 4 | |
| 5 | 5 | ##About |
| 6 | 6 | |
| 7 | -This setting allows the user to set an image to be used on every report's header section. You should make sure the image is web searchable (public) since the application will need to access the server to pull the image. Now when you load up a report, the image will display above the data. |
|
| 7 | +When exporting reportset, Izenda checks RedirectExports value. If RedirectExports is true, then it returns exported reportset without placing it to session and redirecting response. |
|
| 8 | 8 | |
| 9 | 9 | ##Global.asax (C♯) |
| 10 | 10 | |
| ... | ... | @@ -21,7 +21,10 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
| 21 | 21 | AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"; |
| 22 | 22 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
| 23 | 23 | Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
| 24 | - AdHocSettings.ReportHeaderImageUrl = "www.yoursite.com/reporting/resources/company_logo.png"; |
|
| 24 | + |
|
| 25 | + AdHocSettings.RedirectExports = true; // false by default |
|
| 26 | + |
|
| 27 | + |
|
| 25 | 28 | HttpContext.Current.Session["ReportingInitialized"] = true; |
| 26 | 29 | } |
| 27 | 30 | } |
| ... | ... | @@ -42,7 +45,9 @@ Public Class CustomAdHocConfig |
| 42 | 45 | AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE" |
| 43 | 46 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE" |
| 44 | 47 | Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig() |
| 45 | - AdHocSettings.ReportHeaderImageUrl = "www.yoursite.com/reporting/resources/company_logo.png" |
|
| 48 | + |
|
| 49 | + AdHocSettings.RedirectExports = true |
|
| 50 | + |
|
| 46 | 51 | HttpContext.Current.Session("ReportingInitialized") = True |
| 47 | 52 | End Sub |
| 48 | 53 | End Class |