To have a chart image appear in a client’s browser, C1WebChart (or the developer, if in Manual mode) will have to handle at least two URL’s. The page specified by the first URL (the main page) is where the <IMG> tag will be created, and it can be used to gather information via input controls, layout the resulting display of the chart image and text, and include other controls.
A second URL will be necessary to retrieve the actual chart image (JPEG, PNG, GIF) to be displayed as the source attribute of the original page <IMG> tag.
The .aspx page identified by the first URL will result in HTML that contains:
<img src='second-url' />
Except for the Manual render method, the second URL accesses the chart image data, so conceptually the <IMG> tag is really:
<img src='second URL handles a request for an image' />
This handle is either a path to an image file, an HTTPHandler, or a path to another .aspx page that will complete the stream. The ImageRenderMethod determines what form the <IMG> tag will take. For more information on the different methods for rendering the image tag such as the File, HtttpHandler, ASP Page, Manual and Binary Write, see Using Different Methods for Rendering the Image Tag.
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |