API/CodeSamples/ApplicationHeaderImageUrl.md
... ...
@@ -0,0 +1,48 @@
1
+#ApplicationHeaderImageUrl
2
+
3
+This property gets or sets the URL of the Application Header Logo. This is commonly used to apply branding to Izenda reporting pages to more fully integrate it with the website hosting Izenda Reports.
4
+
5
+##Global.asax (C♯)
6
+```c#
7
+
8
+//main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
9
+public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig
10
+{
11
+ // Configure settings
12
+ // Add custom settings after setting the license key and connection string by overriding the ConfigureSettings() method
13
+ public static void InitializeReporting() {
14
+ //Check to see if we've already initialized.
15
+ if (HttpContext.Current.Session == null || HttpContext.Current.Session["ReportingInitialized"] != null)
16
+ return;
17
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE";
18
+ //Creates a connection to Microsoft SQL Server
19
+ AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE";
20
+ AdHocSettings.AdHocConfig = new CustomAdHocConfig();
21
+ AdHocSettings.ApplicationHeaderImageUrl = "http://www.yoursite.com/yourheaderimage.png";
22
+ HttpContext.Current.Session["ReportingInitialized"] = true;
23
+ }
24
+}
25
+```
26
+
27
+##Global.asax (VB.NET)
28
+
29
+```visualbasic
30
+
31
+'main class: inherits DatabaseAdHocConfig or FileSystemAdHocConfig
32
+Public Class CustomAdHocConfig
33
+ Inherits Izenda.AdHoc.DatabaseAdHocConfig
34
+
35
+ Shared Sub InitializeReporting()
36
+ 'Check to see if we've already initialized
37
+ If HttpContext.Current.Session Is Nothing OrElse HttpContext.Current.Session("ReportingInitialized") IsNot Nothing Then
38
+ Return
39
+ 'Initialize System
40
+ AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"
41
+ AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"
42
+ AdHocSettings.AdHocConfig = New CustomAdHocConfig()
43
+ AdHocSettings.ApplicationHeaderImageUrl = "http://www.yoursite.com/yourheaderimage.png"
44
+ HttpContext.Current.Session("ReortingInitialized") = True
45
+ End Sub
46
+
47
+End Class
48
+```
... ...
\ No newline at end of file