本文介绍了如何使用2个不同的按钮在单个reportviewer中使用多个报告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用c#

推荐答案

ReportDocument rpt = new ReportDocument();
rpt.Load("REPORT1.rpt");
CRPTViewer.ReportSource = rpt;
CRPTViewer.RefreshReport();



用于按钮2和报告2



for button 2 and report 2

ReportDocument rpt = new ReportDocument();
rpt.Load("REPORT2.rpt");
CRPTViewer.ReportSource = rpt;
CRPTViewer.RefreshReport();



这篇关于如何使用2个不同的按钮在单个reportviewer中使用多个报告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 19:00