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