04a753b9bf743b5ec29edc4ebda259dfbf0171bf
FAQ/Common-UI-Customizations.md
| ... | ... | @@ -49,3 +49,29 @@ Each adHoc setting corresponds to the below setting under Style Tab |
| 49 | 49 | |
| 50 | 50 | ## Examples |
| 51 | 51 | |
| 52 | +Thumbnail Height |
|
| 53 | + |
|
| 54 | +###Global.asax (C♯) |
|
| 55 | + |
|
| 56 | +```csharp |
|
| 57 | + |
|
| 58 | + |
|
| 59 | +public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig |
|
| 60 | +{ |
|
| 61 | + |
|
| 62 | + public static void InitializeReporting() { |
|
| 63 | + |
|
| 64 | + if (HttpContext.Current.Session == null || HttpContext.Current.Session["ReportingInitialized"] != null) |
|
| 65 | + return; |
|
| 66 | + AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"; |
|
| 67 | + |
|
| 68 | + AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"; |
|
| 69 | + Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig(); |
|
| 70 | + HttpContext.Current.Session["ReportingInitialized"] = true; |
|
| 71 | + |
|
| 72 | + AdHocSettings.ThumbnailHeight = 400; // ThumbnailHeight set to 400 |
|
| 73 | + |
|
| 74 | + |
|
| 75 | + } |
|
| 76 | +``` |
|
| 77 | + |