Ieslab 发表于 2016-1-25 10:59:00

映射报表到报表浏览器的代码添加在哪里

对照着入门教程(2)中一步一步做,其中有一段代码
            string file_name = @"..\..\RdlReport1.rdlx";

            GrapeCity.ActiveReports.PageReport pageReport = new GrapeCity.ActiveReports.PageReport(new System.IO.FileInfo(file_name));

            GrapeCity.ActiveReports.Document.PageDocument pageDocument = new GrapeCity.ActiveReports.Document.PageDocument(pageReport);

            viewer1.LoadDocument(pageDocument);
这段代码应该添加在哪里?

Lenka.Guo 发表于 2016-1-25 11:07:00

您好,

双击 Form1, 生成 Form1_load 事件,在该事件中增加以上代码。

Ieslab 发表于 2016-1-25 11:12:00

回复 2楼Lenka.Guo的帖子

好的,已经解决。谢谢

Lenka.Guo 发表于 2016-1-25 11:13:00

不客气,解决了就好~

Lenka.Guo 发表于 2016-2-1 13:52:00

回复 10楼jian.du的帖子

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

http://gcdn.gcpowertools.com.cn/attachment.aspx?attachmentid=10062
页: [1]
查看完整版本: 映射报表到报表浏览器的代码添加在哪里