This documentation is for the legacy Izenda 6 product. Documentation for the new Izenda 7 product can be found at https://www.izenda.com/docs/
Allows customization of the process that saves the form attached to a report
static Dictionary<string, byte[]> thumbnails = new Dictionary<string, byte[]>(); public override void SaveThumbnail(ReportInfo reportInfo, System.Drawing.Bitmap thumbnail) { byte[] thd; using (System.IO.MemoryStream ms = new System.IO.MemoryStream()) { thumbnail.Save(ms, System.Drawing.Imaging.ImageFormat.Png); thd = ms.ToArray(); } thumbnails.Add((reportInfo.Category ?? "") + "#" + (reportInfo.Name ?? ""), thd); }
Note: The overriden SaveThumbnail method must NOT contain anything which can trigger HttpContext.Current getter call, including reportInfo.FullName.
Last edited by Marcus Hodges, 2016-02-04 13:22:41