Gets or sets the rendering method used to display a chart image.
Chart rendering type. Image tag, input tag, binary data streaming and image map are the options.
Visual Basic (Declaration) | |
---|---|
Public Property RenderType As RenderType |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public RenderType RenderType {get; set;} |
Return Value
A RenderType integer enumeration.
The following describes the ways by which a chart image can be rendered:
- The "Image Tag" type results in a temporary file saved to disk at the server, and the chart is displayed at the client using an <IMG> tag with its SRC attribute set to the URL specified by the ImageUrl property.
- The "Input Tag" type also results in a temporary file saved to disk at the server, and the chart is displayed at the client using an <INPUT> tag with its SRC attribute set to the URL specified by the ImageUrl property. Note that this mode should only be used if you want to use the chart's Click event.
- With "Binary Streaming" there are no temporary image files at the server, instead the chart image is sent as a binary stream, and is displayed using an <IMG> tag with its SRC attribute set to another .aspx page that is responsible for generating the chart image.
- A rendering type of RenderType.ImageMap results in an image map being created, and DOES NOT result in an actual chart image being displayed. This should only be used when using an image map with a rendering type of "binary streaming". For more information on how to accomplish this see the Binary Streaming and Image Maps topic.
For a complete discussion of chart rendering see the Rendering Methods topic.
Note that you can control how temporary image files are saved to disk using the ImageUrl property. For more information see the Image File Management topic.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family