找回密码
 立即注册

QQ登录

只需一步,快速开始

depand

注册会员

22

主题

41

帖子

153

积分

注册会员

积分
153
depand
注册会员   /  发表于:2016-7-22 11:37  /   查看:3130  /  回复:3
本帖最后由 Lenka.Guo 于 2016-7-22 15:33 编辑

DataDynamics.ActiveReports.ActiveReport3 rpt = new DataDynamics.ActiveReports.ActiveReport3();
                                                System.IO.MemoryStream ms = new System.IO.MemoryStream( ( byte[] ) 数据库报表);
                                                this.dgn.Report.LoadLayout(ms);

升级了10.0后
GrapeCity.ActiveReports.SectionReport rt = new GrapeCity.ActiveReports.SectionReport();
                        System.IO.MemoryStream ms = new System.IO.MemoryStream( ( byte[] )数据库报表);
                        rt.LoadLayout(ms);
                        this.designer....这里怎么转???把报表传给设计器

3 个回复

倒序浏览
SunDream°
社区贡献组   /  发表于:2016-7-22 11:53:33
沙发
Hi~  你的这个升级跟我的一个操作很像


this.designer.Report = rt;       其实你这样就可以的~  简单粗暴!!
回复 使用道具 举报
depand
注册会员   /  发表于:2016-7-22 12:49:01
板凳
感谢感谢!!
回复 使用道具 举报
Lenka.Guo讲师达人认证 悬赏达人认证
超级版主   /  发表于:2016-7-22 15:33:45
地板

如果需要,您可以参考这个帖子中的2#从数据库中存取报表:http://gcdn.gcpowertools.com.cn/ ... hread&tid=22972
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部