Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have read some articles having to use the rdlc report in vb.net instead of crystal report. but upon trying
crystal report is much easier to manipulate but when it comes to setup and development, you will encounter too many errors.

now i want to use the rdlc in generating the reports but i cant seem to figure out how to call the rdlc report viewer in button click.

I encoded the code below in my button code but nothing happens

can some one enlighten me how to use the rdlc report?

What I have tried:

Me.displayTableAdapter.Fill(Me.aludbDataSet.display)
   Me.ReportViewer1.RefreshReport()
Posted
Updated 19-Oct-21 8:29am

I'd strongly suggest to read this: Use WinForms ReportViewer Control - SQL Server Reporting Services (SSRS) | Microsoft Docs[^]
There you'll find complete tutorial about loading rdlc report.

Note: do not forget to use links on the left pane of MSDN site.

Good luck!
 
Share this answer
 
Comments
Beginner213456 19-Oct-21 23:55pm    
Thank you, instead of discriminating my question, you provided a helpful answer. the link totally helped. im now working on my design.
Maciej Los 20-Oct-21 0:22am    
You're very welcome.
This is not a tuition site and your question is too expansive for a Quick Answers forum. I suggest you continue your research into how to use RDLC - there is a little bit more to it than the code you have shared.

You could start here (not an endorsement) RDLC reports in Visual Studio 2019 (C# Code) - YouTube[^]

If you get stuck with a specific problem then by all means come back with a question
 
Share this answer
 
Comments
Maciej Los 19-Oct-21 14:20pm    
Unfair downvote corrected!
CHill60 19-Oct-21 16:16pm    
Thank you. Amusingly the OP has probably now discovered they can't "attack" members with multiple downvotes on recent posts. Laughable really

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900