用友华表转换EXCEL报错
用友华表转换EXCEL时用ExportExcelDlg()方法转换报‘转换失败’!!大家有没遇到过这个问题,请分析下原因。、 谢谢!!! --------------------编程问答-------------------- protected void ExportToExcel_Click(object sender, EventArgs e)
{
string FileName = "游客" + string.Format("{0:yyMMddHHmmssf}", DateTime.Now);
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=" + Server.UrlEncode(FileName) + ".xls");
Response.Charset = "gb2312";
Response.ContentType = "application/ms-excel";
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
GridView1.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();
}
//重载VerifyRenderingInServerForm
public override void VerifyRenderingInServerForm(Control control)
{
// Confirms that an HtmlForm control is rendered for
}
--------------------编程问答-------------------- 很恐怖的用友华表。。。。。
N年前用他的控件,后来还是换了。。。。 --------------------编程问答-------------------- 解决了吗?我也遇到了 --------------------编程问答-------------------- 尝试使用新版本。
my blog
http://ufo-crackerx.blog.163.com/ --------------------编程问答-------------------- 已经用的是最新版了,导出text格式的也好使,就是excel不行 --------------------编程问答-------------------- 動態調試看看就知道問題在哪 --------------------编程问答-------------------- 用最新版本看看,我搞了一個最新版本的 Cellsoft CellCtrl 5.3.9.15 --------------------编程问答-------------------- 注册华表的组件:YRWXls.ocx
补充:.NET技术 , 组件/控件开发