私のページにはグラフがあり、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();
}