找回密码
 立即注册

QQ登录

只需一步,快速开始

jlspslzxf

注册会员

2

主题

4

帖子

69

积分

注册会员

积分
69
  • 60

    金币

  • 主题

  • 帖子

最新发帖
jlspslzxf
注册会员   /  发表于:2014-5-28 12:12  /   查看:5709  /  回复:5
System.IO.MemoryStream m_stream = new System.IO.MemoryStream();
            ActiveReportsDemo.Reports.ZXJJYZXS rpt1 = new ActiveReportsDemo.Reports.ZXJJYZXS();
            GetData(ref rpt1);
            rpt1.Run();
            GrapeCity.ActiveReports.Export.Html.Section.HtmlExport csvExport1 = new GrapeCity.ActiveReports.Export.Html.Section.HtmlExport();

            
            csvExport1.Export(rpt1.Document, m_stream);





            Response.ContentType = "text/html";
            Response.AddHeader("content-disposition", Server.UrlPathEncode("attachment;filename=客户订单.html"));
            Response.BinaryWrite(m_stream.ToArray());
            Response.End();

5 个回复

倒序浏览
roger.wang
社区贡献组   /  发表于:2014-5-28 15:14:00
沙发
回复 1楼jlspslzxf的帖子

问题收到了,您的用法是正确的。

HTML导出有一些限制:

  1. Does not support:

  2. Line control
  3. Control borders
  4. Shapes (other than filled rectangles)
  5. CrossSectionBox and CrossSectionLine controls
  6. Overlapping controls
复制代码


请参阅接口文档:http://helpcentral.componentone. ... /OnlineEn/HTML.html
回复 使用道具 举报
jlspslzxf
注册会员   /  发表于:2014-5-30 10:58:00
板凳
回复 2楼roger.wang的帖子

有导出html文件的例子吗
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2014-5-30 11:15:00
地板
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2014-5-30 11:17:00
5#
回复 使用道具 举报
roger.wang
社区贡献组   /  发表于:2014-6-9 09:14:00
6#
欢迎有问题开新帖沟通。


   
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部