4672766c1326b1f634f9714aa26023c9ac7e190c
FAQ/DeleteThumbnail.md
| ... | ... | @@ -0,0 +1,25 @@ |
| 1 | +#DeleteThumbnail() |
|
| 2 | + |
|
| 3 | +[[_TOC_]] |
|
| 4 | + |
|
| 5 | +##About |
|
| 6 | + |
|
| 7 | +Allows customization for deleting forms associated with specific reports |
|
| 8 | + |
|
| 9 | +##Global.asax (C♯) |
|
| 10 | + |
|
| 11 | +```csharp |
|
| 12 | +static Dictionary<string, byte[]> thumbnails = new Dictionary<string, byte[]>(); |
|
| 13 | + |
|
| 14 | + public override void DeleteThumbnail(ReportInfo reportInfo) |
|
| 15 | + { |
|
| 16 | + if (thumbnails.ContainsKey((reportInfo.Category ?? "") + "#" + (reportInfo.Name ?? ""))) |
|
| 17 | + thumbnails.Remove((reportInfo.Category ?? "") + "#" + (reportInfo.Name ?? "")); |
|
| 18 | + } |
|
| 19 | +``` |
|
| 20 | + |
|
| 21 | +##Global.asax (VB.NET) |
|
| 22 | + |
|
| 23 | +```visualbasic |
|
| 24 | + |
|
| 25 | +``` |
|
| ... | ... | \ No newline at end of file |