开发者

Is it possible to display different reports with a single a report viewer?

开发者 https://www.devze.com 2023-03-03 09:35 出处:网络
Is it possible to display different with a single a report viewer such that when I click on the button \"Report 1\" to should display Report 1 in t开发者_JAVA百科he Report Viewer.

Is it possible to display different with a single a report viewer such that when I click on the button "Report 1" to should display Report 1 in t开发者_JAVA百科he Report Viewer.

If I click on the button "Report 2" it should display Report 2.

Is this possible ? If yes then please provide the code.

EDIT 1 :

I tried it like this, its not working

    frmReport.ReportViewer1.Reset()
    frmReport.ReportViewer1.LocalReport.ReportEmbeddedResource = "sdvsdf.Report1.rdlc"
    frmReport.ReportViewer1.RefreshReport()


You can change the source of the report using the ServerReport or LocalReport properties on the ReportViewer object, depending on whether you're sourcing your reports from a SSRS server or are using local .rdlc files.


like this

printviewer1 = report1 ,vbnewline, Report2 then, turn off your computer and better get other course

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号