lyc 发表于 2021-9-19 21:22:23

如何给报表传递参数

本帖最后由 Crystal.Li 于 2021-9-22 17:06 编辑

WinForm 添加了 Viewer控件,也装载了报表,如何向报表通过代码传递参数?
            string file_name = @"..\..\Report02.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);
如给标题、条码、产品名称传递参数,并显示出来

Crystal.Li 发表于 2021-9-19 21:22:24

您好,可以参考下这个帖子:
如何后台给报表参数赋值 和 如何后台获取报表参数
https://gcdn.grapecity.com.cn/forum.php?mod=viewthread&tid=48869&fromuid=59070
(出处: 葡萄城产品技术社区)
页: [1]
查看完整版本: 如何给报表传递参数