fd103cdc0188f7838f110935d31285a41f63636e
API/CodeSamples/ApplicationHeaderImageUrl.md
| ... | ... | @@ -18,9 +18,12 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
| 18 | 18 | //Creates a connection to Microsoft SQL Server |
| 19 | 19 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
| 20 | 20 | AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
| 21 | - AdHocSettings.ApplicationHeaderImageUrl = "http://www.yoursite.com/yourheaderimage.png"; |
|
| 22 | 21 | HttpContext.Current.Session["ReportingInitialized"] = true; |
| 23 | 22 | } |
| 23 | + |
|
| 24 | + public override void ConfigureSettings() { |
|
| 25 | + AdHocSettings.ApplicationHeaderImageUrl = "http://www.yoursite.com/yourheaderimage.png"; |
|
| 26 | + } |
|
| 24 | 27 | } |
| 25 | 28 | ``` |
| 26 | 29 | |
| ... | ... | @@ -40,9 +43,11 @@ Public Class CustomAdHocConfig |
| 40 | 43 | AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE" |
| 41 | 44 | AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE" |
| 42 | 45 | AdHocSettings.AdHocConfig = New CustomAdHocConfig() |
| 43 | - AdHocSettings.ApplicationHeaderImageUrl = "http://www.yoursite.com/yourheaderimage.png" |
|
| 44 | 46 | HttpContext.Current.Session("ReortingInitialized") = True |
| 45 | 47 | End Sub |
| 46 | - |
|
| 48 | + |
|
| 49 | + Public Overrides Sub ConfigureSettings() |
|
| 50 | + AdHocSettings.ApplicationHeaderImageUrl = "http://www.yoursite.com/yourheaderimage.png" |
|
| 51 | + End Sub |
|
| 47 | 52 | End Class |
| 48 | 53 | ``` |
| ... | ... | \ No newline at end of file |