Welcome to FoxLearn
In this tutorial, I'll show you how to print a local report without preview in c-sharp
To play the demo, You need to create a new windows forms application project, then drag a button from your visual studio toolbox to your form
Right click on your project, then add a local report to your project
Next, Drag the TextBox control from the report toolbox to the local report, then enter the text value that you want to display on the report.
Right click on your project, then select Manage Nuget Packages
Next, search and install the Microsoft report viewer for the windows forms application
You need to create an extension method that allows you to print your report to the printer
You need to add the click event handler to the print button, then you can use the LocalReport class to help you print your report to the printer
You should set the copy output directory property of your report to copy always, or you need to copy the report to the output directory
Thank you for watching this video and don't forget to subscribe to my channel