Assembly: C1.Web.C1WebReport.2 (in C1.Web.C1WebReport.2.dll)
Syntax
C# |
---|
[DefaultValueAttribute(ImageRenderMethodEnum.File)] public ImageRenderMethodEnum ImageRenderMethod { get; set; } |
Visual Basic (Declaration) |
---|
<DefaultValueAttribute(ImageRenderMethodEnum.File)> _ Public Property ImageRenderMethod As ImageRenderMethodEnum Get Set |
Remarks
When a report contains images, the images must be transferred from the server to the client separately from the report body. This can be done in two ways:
Method 1: Set the ImageRenderMethod property to File. This will cause the control to store the images in temporary files in the application folder. The main report can then reference the images using regular IMG Html tags.
To use this method, the application must have permissions to create sub-folders and write files to the application folder.
Method 2: Set the ImageRenderMethod property to HttpHandler. This will cause the control to store the images in the application Cache or Session depending on the ImageTransferMethod property value. In this case, the main report will contain references to an HttpHandler that is used to return the image data.
To use this method, you must add an entry to the application's Web.config file.
<configuration> <system.web> <!-- add these: --> <httpHandlers> <add verb="*" path="c1wrImg.imgx" type="C1.Web.C1WebReport.C1WebReport, C1.Web.C1WebReport" /> </httpHandlers> <!-- other settings... --> |
This entry will cause IIS to invoke C1WebReport to process the c1wrImg.imgx url, returning the requested image.
The default value for this property is ImageRenderMethodEnum.File.