/// <summary> /// Replace this event when creating a custom descendant of FlexCelAspViewer. /// </summary> /// <param name="e"></param> protected internal virtual void OnImageLink(ImageLinkEventArgs e) { if (ImageLink != null) { ImageLink(this, e); } }
/// <summary> /// Intercepts the original OnGetImageInformation event to provide the parameters for FlexCelAspExport. /// </summary> /// <param name="e"></param> protected override void OnGetImageInformation(ImageInformationEventArgs e) { switch (Viewer.ImageExportMode) { case TImageExportMode.TemporaryFiles: break; case TImageExportMode.UniqueTemporaryFiles: e.ImageLink = Viewer.ImageHandlerName + "?" + Viewer.ImageParameterName + "=" + e.ImageLink; break; case TImageExportMode.CustomStorage: ImageLinkEventArgs eLink = new ImageLinkEventArgs(e.Workbook, e.ObjectIndex, e.ShapeProps, e.ImageLink, e.AlternateText, e.SavedImageFormat); Viewer.OnImageLink(eLink); e.ImageLink = eLink.ImageLink; e.ImageFile = null; break; } base.OnGetImageInformation(e); }