-
Notifications
You must be signed in to change notification settings - Fork 201
ASP.NET Report Control
dotnet add package Majorsilence.Reporting.RdlAsp
This will be a brief overview of how to display a myfyireporting report on an asp.net page.
See the sample project asp.net example. Remember to update the file path of sqlite database that the included report is using.
First step is to add these references to your web project
- DataProviders
- RdlCri
- RdlEngine
- RdlAsp
Also make sure you have RdlEngineConfig.xml in your project and the path for your needed data provider set correctly.
This example will be making use of the control that was provided by the original fyireporting project. This control is in the RdlAsp project and requires that in your web project that you have page called ShowReport.aspx.
As a starting point I suggest creating a new page called ShowReport.aspx. You will need to copy the logic from the following two files into your project. Be careful to get all the required code.
Once this is done you can display a report by calling the page like this.
ShowReport.aspx?rs:url=SimpleTest1.rdl&rs:Format=html
Available formats are
- html
- csv
- xml