Can we display crystal report using asp.net core 6 on web page ? if yes then which method, or tool we can use to implement this ?
also need export functionality in Excel and PDF. currently have searched many article but still not find any relevant or proper solutions.
how can i implement this functionality using asp.net core 6 ?

Abhishek YadavPosted Aug 7, 2024, 10:43 AM
Request for Purchase of Office Vacuum Cleaner
Yes, you can use Crystal Reports in ASP.NET Core 6, but it requires a bit of work since Crystal Reports is not natively supported in .NET Core. Here’s a general approach to achieve this:
1. Using Crystal Reports with ASP.NET Core 6
To use Crystal Reports in an ASP.NET Core 6 application, follow these steps:
Install Crystal Reports Runtime:
Create a .NET Framework Class Library:
Add a Web API in ASP.NET Core:
Expose Reports from .NET Framework Library:
Call API from ASP.NET Core Application:
2. Export Functionality (Excel and PDF)
To add export functionality:
Export to PDF:
ReportDocument.Exportmethod to export reports to PDF.Export to Excel:
ReportDocument.Exportmethod withExcelFormatOptionsto export reports to Excel. Tools and LibrariesWhile Crystal Reports doesn’t directly support .NET Core, you can work around this by using a .NET Framework Class Library to handle report generation and export functionality. Then, expose this functionality through a Web API that your ASP.NET Core application can consume.
If you need more details or specific code examples, let me know!