on 2025 Aug 28 12:59 PM
Charts/graphs are not working in Visual studio 2022. They are working in crystal 2020 on the same machine.
We received a Crystal Report containing several charts, which was uploaded to a Visual Studio 2022 ASP.NET Crystal Report website using C#. The goal was to create a webpage hosted in IIS to view the report. The report functions perfectly in the standalone Crystal Reports application 2020 and opens it very quickly. We modified the project to host the report, including the web.config files, ODBC connections, and the default file pointing to the report. We followed all the standard procedures that had worked for another 200 reports without charts. The Crystal Reports .NET runtime for Visual Studio 2022, both 32 and 64-bit (all software is version 38), was installed on the server. With everything set up, we were prepared to check the preview using the Crystal Viewer embedded in the Crystal extension tab in Visual Studio. When previewing the report, the initial drop-down to select data functioned correctly, but when the report attempted to display the charts, a quick message appeared stating: "Crystal Report viewer: memory full." The project was compiled, the website was created, and added to IIS, yet the same error appeared on the created website: "not enough memory for operation." The server has ample disk space and RAM (32 GB), and we do not observe the memory usage spiking. Final test we create a simple report with all the updated tools in crystal reports, simple data, pretty much it was just a chart, but when we add the project in in visual studio it had the same result. Can you assist me in resolving this issue? please search deep if necessary.
Request clarification before answering.
How many charts show up in the report?
How many pages is the report?
Edit the report and add in selection formula so it only shows a few pages, what happens?
What happens if you run the Report in CR Designer and export it to RPT format or save it with data in your app?
Do you see the charts?
FYI, the embedded Report Designer in Visual Studio is limited as to what it can do, so it can show different results in formatting etc.
When designing a report always use a real printer, not the Redirected printer Windows has or some PDF printers, they have issues also.
You can install dummy printer like HP's, just set the port to LPT1, it's the printer driver CR requires.
Do you happen to use and UFL's in you reports, custom Formula functions? Those can cause issues like this if they don't exist on the WEB server.
You can find them here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.