Once the C1WebChart control has been added to the Visual Studio Toolbox, you can add it to your Web form by performing a drag-and-drop operation or double-clicking the control.
When you add a C1WebChart control to the form, you will see a default chart with four data series and some random data. A Confirmation dialog box also appears asking you if you would like to add an HttpHandler to the Web.config file. Click Yes and the following entry is added to the Web.config file:
<configuration>
<system.web>
<httpHandlers>
<add verb="*" path="c1chartimage.aspx"
type="C1.Web.C1WebChart.ImageHttpHandler,C1.Web.C1WebChart.2"/>
</httpHandlers>
…
This step allows C1WebChart to use its internal HttpHandler to transfer chart images directly to the client without any temporary files. It is not strictly required (you can use temporary files if you prefer), but for most applications this is the most efficient method.
At this point, you may run your application and see the chart on your Web page.
Note: This topic is discussed in detail in a later section (see Understanding how C1WebChart Handles Images).
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |