w19950526 发表于 2016-12-12 10:39:35

SectionReport怎么显示到viewer

之前一直用的是PageReport,报表样式用.rdlx直接绑定上去就可以了
但是现在用的SectionReport,.cs的好像不能直接绑定,请问一下怎么把SectionReport显示到Viewer上面呢?

Lenka.Guo 发表于 2016-12-12 11:04:20

您如果使用的是WebViewer,参考代码:
MyInvoiceReport rpt = new MyInvoiceReport();WebViewer1.Report = rpt;

您如果使用的是Winform Viewer,参考代码:SectionReport1 sectionReport = new SectionReport1();viewer1.LoadDocument(sectionReport);

w19950526 发表于 2016-12-12 11:12:31

谢谢!已解决!

Lenka.Guo 发表于 2016-12-12 11:48:30

w19950526 发表于 2016-12-12 11:12
谢谢!已解决!

:loap1:
页: [1]
查看完整版本: SectionReport怎么显示到viewer