找回密码
 立即注册

QQ登录

只需一步,快速开始

linanxian

注册会员

16

主题

27

帖子

99

积分

注册会员

积分
99

活字格认证

linanxian
注册会员   /  发表于:2013-9-23 15:46  /   查看:4200  /  回复:3
HIkakuHyo rpt = new HIkakuHyo();           
                rpt.UnboundDataSource = newDataTable;

               Response.ContentType = "application/pdf";
                Response.AddHeader("content-disposition", "attachment; filename=" + HttpUtility.UrlEncode(fe_MakeFileName(newDataTable, ChouhyouType) + ".pdf", System.Text.Encoding.UTF8));
        GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport pdf = new GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport();
               System.IO.MemoryStream memStream = new System.IO.MemoryStream();
        pdf.Export(rpt.Document, memStream);
               Response.BinaryWrite(memStream.ToArray());
               Response.Flush();
        Response.Close();

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

3 个回复

倒序浏览
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2013-9-23 16:54:00
沙发
你运行这个示例,点击导出PDF可以正常打开吗:http://www.gcpowertools.com.cn/l ... 1&action=12
回复 使用道具 举报
linanxian
注册会员   /  发表于:2013-9-24 09:52:00
板凳
问题已经解决
回复 使用道具 举报
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2013-9-24 11:00:00
地板
好的,谢谢你的反馈。
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部