(Windows application)
I am very new to RDLC Report and I have drill Down Report In my Project. I read Many Forums and tutorial but i did not find any solution.
I Have Added Report1.Rdlc
In my project. There is One TextBoxName on that. What I want To Do is on TextBoxName
Click I want To jump On Report2.Rdlc
But When I Set The properties Of TextboxName
Report2 Is not Showing in DropDown
When I Watch the videos in that Dropdown Automatically Appears if there is any rdlc report in Project but in my case it does not
I take Crystalreportviewer
for Report1
and in CrystalreportViewer
task i choose Report1 So Report2 will Open in Same Viewer..?????
i tried to give path in expression for example
="D:\MyProject\ReportingViews\Report2.rdlc"
i Also Give only Name
Report2.rdlc
This code will help you for open Report2 in Same Report Viewer on TextBoxName Click.
// ---Load Report1 in report viewer on form load---
reportViewer1.LocalReport.ReportPath = Application.StartupPath + @"\Report1.rdlc"; //Here we set Set Report1 file path;
reportViewer1.RefreshReport();
//---Load Report2 in same report viewer on TextBoxName Click
reportViewer1.LocalReport.ReportPath = Application.StartupPath + @"\Report2.rdlc"; //Here we set Set Report2 file path
reportViewer1.RefreshReport();
Make sure File property of Report1 and Report2 as follows
Build Action = Content
and
Copy to output directory = Copy always
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With