FAQ/LoadThumbnail.md
... ...
@@ -0,0 +1,31 @@
1
+#LoadThumbnail()
2
+
3
+[[_TOC_]]
4
+
5
+##About
6
+
7
+Allows customization of the process for loading report thumbnails
8
+
9
+##Global.asax (C♯)
10
+
11
+```csharp
12
+ static Dictionary<string, byte[]> thumbnails = new Dictionary<string, byte[]>();
13
+
14
+ public override bool ThumbnailExists(ReportInfo reportInfo)
15
+ {
16
+ return thumbnails.ContainsKey((reportInfo.Category ?? "") + "#" + (reportInfo.Name ?? ""));
17
+ }
18
+
19
+ public override byte[] LoadThumbnail(ReportInfo reportInfo)
20
+ {
21
+ if (thumbnails.ContainsKey((reportInfo.Category ?? "") + "#" + (reportInfo.Name ?? "")))
22
+ return thumbnails[(reportInfo.Category ?? "") + "#" + (reportInfo.Name ?? "")];
23
+ return new byte[0];
24
+ }
25
+```
26
+
27
+##Global.asax (VB.NET)
28
+
29
+```visualbasic
30
+
31
+```
... ...
\ No newline at end of file