在更新面板中导出jqplot

时间:2012-09-24 08:10:36

标签: jqplot

我的页面中有图表,在jqplot的帮助下构建。图表位于更新面板中。现在我需要将该图表导出到excel。但是,当我导出该图时,只有标题被导出而不是图形。所以,我坚持这个。

我将非常感谢将更新面板中的jqplot导出图表构建到excel的答案

用于出口的代码:

protected void btnExcel_Click(object sender, ImageClickEventArgs e)
{
    Response.Clear();
    Response.AddHeader("content-disposition", "attachment;filename=ProjectTarget_" + CampaignID + ".xls");
    Response.Charset = "";
    Response.ContentType = "application/vnd.xls";
    StringWriter stringWrite = new StringWriter();
    HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);

    //  LoadMileStones(currMileStone);

    TableLists.RenderControl(htmlWrite);
    Response.Write(stringWrite.ToString());
    Response.End();
}

0 个答案:

没有答案