ComponentOne Chart for .NET (2.0) Search HelpCentral 

File-based Rendering Method

To use a File-based rendering method to transfer C1WebChart to the client using temporary files, complete the following steps:

1.   Place a C1WebChart control on a form. A Confirmation dialog box appears.

2.   Click No. An HttpHandler is not used for File-based Rendering Method.

3.   Configure the data and appearance elements as desired.

4.   Set the ImageRenderMethod property to ImageRenderMethodEnum.File.

5.   Ensure the ImageUri property is blank.

Run the program and notice the following:

The image tag created should look similar to the following:

<img id=_c1wc
 src=C1WebChartTemp/c1c_105_f1_d814d8cf.png>

The C1WebChartTemp directory is always assumed if a virtual path is not specified. File security settings must allow writing here for the anonymous Web user.

Because the ImageUri property is blank, the control manufactures a name for the temporary file. The manufactured name is a hash code of the chart properties, and is virtually unique for each different chart.


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.