1

Is this possible?

Step 1: Set up a Crystal Reports engine (e.g., via a .NET backend). Step 2: Generate reports on the server-side and export them as PDF, Excel, or other formats. Step 3: Use APIs to deliver these reports to the React front-end. Step 4: In your React application, display the generated report by embedding the PDF in an or offering it as a download.

If not my issue is, I have to use already created crystal reports, in a Windows Form to react (Core web API) conversion project. what is the possibility of using the existing reports?

2 Answers 2

1

The Crystal portion must run on Windows under .NET Framework. Can't use .NET Core. So highest you can go is 4.8.1.

Your main app can call the Crystal app, pass the rpt file path, parameters, logon info, export format, export file, etc. It can then deliver the exported file to the end user.

If you don't want to develop the Crystal portion yourself, there are 3rd-party Crystal Reports automation packages that provide a command line API.

Sign up to request clarification or add additional context in comments.

2 Comments

Could you please suggest me a good 3rd party package ?
See listing by Ken Hamady here: kenhamady.com/productlinks/default.html
1

As far as I know, this is no direct support for using Crystal Reports in ASP.NET Core at this time.

If you'd like to expose existing Crystal Reports to React client users (migrate from webform to React + ASP.NET Core APIs), as you mentioned in possible approach/steps, you can try to make webform project expose Crystal Reports as webmethods or service, then consume the service form React client to render generated PDF report. And if you do not want React client communicate data with old webform app, you can implement/configure your ASP.NET Core API to serve as an intermediary proxy between the React app and the webform app.

Besides, redesign and reconstruct projects is an alternative way. Make ASP.NET Core API to expose data to client app, and implement report features with pure js solution based on fetched data on React client. As @Arvo mentioned, this might takes considerable effort due to its complexity.

2 Comments

Re "implement report features with pure js solution" - this heavily depends on existing software architecture and reports complexity. In our desktop app we have hundreds of standard reports and much more customer specific ones - convert them all to new engine (be it js or some other web reporting engine) would be practically impossible.
I agree with you @Arvo. Normally, project or framework migration involves a significant amount of work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.