I'm facing problem in generating RDLC Sub Report using ASP.NET MVC 5 Visual Studio 2019 using LINQ query.
I have two tables PartyType and Customer which is shown in Image given below. I want to show PartTypeName in Main Report and then according to that party Customer data will Show In SubReport RDLC.
This Type of Output I want.
I think what you're looking for is creating a master/detail report. There are tons of articles and videos online. Just do an online search for SSRS master detail example.
Related
I am very new to Blazor and i am wondering if there is a way to generate a View from a Model and his Controller like with Razor to develop faster. In Visual Studio it is possible by right clicking on View Folder and choosing the Controller that we want.
Imagine having a User Model with data like Name, Adress etc. In Razor it is possible to generate a View (HTML, JS) containing those attributes related to User by choosing the model that we want (Edit, Create, Delete, etc).Then a complete form will show up with a generated HTML and JS in Pages Folder.
After a whole night of searching I found that this option given by Visual Studio is related with Scafolding and it is only avalaible for Blazor Server Side and Blazor Hosted applications. More information in the Syncfusion documentation
I Would like to get references on best way to generate reports in an MVC application that allows me to export the results to PDF and EXCEL.
I am currently creating a VIEW, filling a MODEL with data, and exporting view to PDF, using ROTATIVA.
But I have doubts if this is the best way to develop reports in MVC structure.
I checked the options in this post:
https://pt.stackoverflow.com/questions/94696/relat%C3%B3rios-com-asp-net-mvc
But neither of them works with Excel.
I also found out that I can still use RDLC in MVC at this link: http://www.dotnetawesome.com/2013/09/microsoft-report-in-mvc-4.html
But I can not add RDLC files in my project. I have the Report templates in my visual studio.
I have already installed ReportViewerForMVC in my project, but I'm still without the RDLC templates.
Any suggestions?
Thanks
Any good idea to use crystal report with MVC(ASP.net) application as a normal view like *.cshtml ,instead of *.aspx page.
Ok...Thanks Raphael...So final solution is,
In MVC3 directly cannot use ReportViewer Control from *.chtml page.Can use report in two ways
Create an pdf file on fly from your control class Or
Create a aspx page from where you can show your report using report viewer.
Sample application with crystal report and MVC3 ,can check this.
http://code.msdn.microsoft.com/Using-Crystal-Report-in-bb0e6229
It isn't possible to directly use reportviewer inside razor pages. Here you have a link that gives you 2 workaround
Using Reportviewer Control, within a Razor view, in the MVC3 Framework
I have a project where I need to create a Word document report based on some items which custumer can choose on MVC 3 (Razor) website.
Is it possible in any way? The only solutions I can find is report in Excel.
Do I need to create Word Templates?
I would probably use the: Open XML SDK 2.0 for Microsoft Office
there are many advantages in doing this like no need to instantiate Word on the web server, probably not even need to have it installed...
I'm asp.net mvc for my project and now I have to show a couple of reports using the ReportViewer control. I need to specify a couple of properties before rendering the report ie. ReportServer Url.
Is it possible to achieve this using asp.net mvc?
You can't use reportviewer control in asp.net mvc because it needs postbacks.
But you can use it to generate an image and show it (some googling should give you results about how to accomplish that).
Another option - you can make a hybrid application (web forms + mvc).
And another option - you can try javascript charts. Google charts looks good for example.