Izenda Logo

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/

About

Allows customization of the process that saves the form attached to a report

Global.asax (C♯)

 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);
  }

Global.asax (VB.NET)


Note: The overriden SaveThumbnail method must NOT contain anything which can trigger HttpContext.Current getter call, including reportInfo.FullName.