877121273 发表于 2016-2-17 15:12:00

怎样在flashviewer里增加打印功能?

http://blog.gcpowertools.com.cn/post/2014/11/13/customize_flashviewer.aspx看了这个教程,这是页面报表的,我的报表是区域报表的,语法不太一样,图中的代码就不一样,请问怎么改呢?

877121273 发表于 2016-2-17 15:13:00

PageReport pr = new PageReport(new System.IO.FileInfo(context.Server.MapPath("PageReport1.rdlx")));这一句

gw0506 发表于 2016-2-17 16:06:00

模板文件不同,要重新创建制作模板。然后加载。不是语法的问题。

877121273 发表于 2016-2-17 16:09:00

可以给具体一点的做法吗

877121273 发表于 2016-2-17 16:14:00

怎样在ashx页面加载区域报表的模板呢?

gw0506 发表于 2016-2-17 17:41:00

你参考这个博客吧。
http://blog.gcpowertools.com.cn/post/2014/02/24/creating-activereports-on-the-fly.aspx

877121273 发表于 2016-2-17 17:59:00

我说的是在ashx页面加载区域报表的模板哦,报表里面已经有数据的了

Lenka.Guo 发表于 2016-2-18 09:40:00

您好,
您指的是区域报表(基于代码)创建语法:SectionReport1 sr = new SectionReport1();sr.Run();
基于XML 区域报表:GrapeCity.ActiveReports.SectionReport rpt = newGrapeCity.ActiveReports.SectionReport();
System.Xml.XmlTextReader xtr = new System.Xml.XmlTextReader(Application.StartupPath+ "\\Sample.rpx");
rpt.LoadLayout(xtr);

参考文档:http://www.gcpowertools.com.cn/docs/ActiveReports/AR9Guide/#!Documents/_36.htm

Lenka.Guo 发表于 2016-3-2 09:17:00

回复 7楼877121273的帖子

为了给你提供更优质的服务,请对本次服务进行评分。我们会认真对待你提出的宝贵意见,谢谢

http://gcdn.gcpowertools.com.cn/attachment.aspx?attachmentid=10062
页: [1]
查看完整版本: 怎样在flashviewer里增加打印功能?