I need to export data into user defined excel using MVC. I don't want to use tools like aspose etc.
Please help me in exporting data into user defined excel using MVC
Try using openxml or closedxml.
check the following link.
http://www.codeproject.com/Articles/692092/A-free-Export-to-Excel-Csharp-class-using-OpenXML
http://technet.weblineindia.com/web/export-data-to-excel-using-openxml-sdk/
http://www.codeproject.com/Articles/42628/Using-ASP-NET-MVC-and-the-OpenXML-API-to-Stream-Ex
Related
I have an existing ASP.NET MVC application where emails are sent to users with HTML content (Multiple tables) in the body.
Now I have to export and download same data as a PDF file in the browser. Since I have the HTML content already generated, my plan is to convert this HTML to PDF by using Telerik (Since i have license) in my MVC controller.
If HTML to PDF conversion is not possible, please let me know how can i create a PDF with multiple tables using Telerik DLLs as I've never used Telerik controls.
Any help is highly appreciated.
Thanks in advance.
If the data you send is in a Telerik grid you can simple try to do this:
http://demos.telerik.com/kendo-ui/grid/pdf-export
On the otherhand you can also try to use aspose: https://www.aspose.com/products/pdf/net
I fixed it by generating a PDF from scratch using telerik controls.
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
I need to open an excel file in web browser using ASP.Net. Is any control to has this feature?.Help me to find that.
Telerik can help you with the RadSpreadsheet
http://www.telerik.com/products/aspnet-ajax/spreadsheet.aspx
I am new to this MVC and JQuery, i started building small application using these, i am using MVC4 Razor ,with Entity Framework. i fallowed few online tutorials for the. but nothin is working out properly. i am able to get my Json data from my controller but the data is printing on my view as a java script array, jqgrid is not displaying, i guess my jqgrid itself is not called, or its not being referenced properly. please tel me what are all the things need to do, and directory structures to be fallowed.
Thanks in Advance
You can easily get jqGrid and other Grids like Telerik from Nuget Package Manager. Each of them must using their own inbuilt functions to handle the events. You will have to learn them to implement it. You can check demos from below link:
jqGid:
[link] http://www.trirand.com/blog/jqgrid/jqgrid.html
Telerik:
[link] http://demos.telerik.com/kendo-ui/?mvc
[link]http://demos.telerik.com/aspnet-ajax/
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...