다음을 통해 공유


Chart.RenderChartControl Method

Writes the HTML that is required to view the chart into a provided HtmlTextWriter object.

Namespace:  Microsoft.Office.Server.WebControls
Assembly:  Microsoft.Office.Server.Chart (in Microsoft.Office.Server.Chart.dll)

Syntax

'Declaration
Protected Sub RenderChartControl ( _
    chartToRender As Control, _
    writer As HtmlTextWriter _
)
'Usage
Dim chartToRender As Control
Dim writer As HtmlTextWriter

Me.RenderChartControl(chartToRender, _
    writer)
protected void RenderChartControl(
    Control chartToRender,
    HtmlTextWriter writer
)

Parameters

  • chartToRender
    Type: System.Web.UI.Control
    The Control object that represents the chart control needed to render the chart as an image file.

Remarks

There are several steps involved in the rendering of a chart control. The first step is to retrieve the data from the data source. Next, any optional manipulation of the data specified to the chart is performed, such as sorting or filtering. Then the underlying ASP.NETChart control is used to render the chart as an image file. Once the image file is created, it is stored in the custom session state database. Finally, the control generates the necessary client-side HTML to view the chart image and sends the HTML to the HtmlTextWriter output stream.

See Also

Reference

Chart Class

Chart Members

Microsoft.Office.Server.WebControls Namespace