TImageExportMode Enumeration
How images on the Excel file will be stored in order to be served to the browser.
Syntax
Namespace: FlexCel.AspNet
Members
Name | Value | Description |
---|---|---|
TemporaryFiles | 0 | When this option is selected, images will be saved in a temporary directory (defined in FlexCelAspViewer.RelativeImagePath ) You can configure a timeout period with FlexCelAspViewer.ImageTimeout after which the images will be deleted. |
UniqueTemporaryFiles | 1 | When this option is selected, images will be saved in a temporary directory (defined in FlexCelAspViewer.RelativeImagePath ) You can configure a timeout period with FlexCelAspViewer.ImageTimeout after which the images will be deleted. Different from TemporaryFiles, this mode will delete the image once it is served. This is an advantage from the point of view that images are cleaned faster (without waiting for the timeout), but might be a disadvantage if the user for example right clicks the image and selects "view image". As the image is deleted the first time it is served, the second time (when the user does "view image") it will return image not found. Also some browsers might ask for the image more than once. Use this mode only in controlled environments, when you know the browsers being used and you can test them. If you use this mode as for a public web server, some users might not see the images. |
CustomStorage | 2 | This is an advanced option that allows you to store the images somewhere else, for example a database. Links on the image will point to an HttpHandler that you need to implement. See 'Timageexportmodecustomstorage' in the Html Exporting Guide for more information. |