cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Crystal charts are not working in Visual Studio 2022. It is using 32 bit not 64 bit.

paula_randall73
Explorer
0 Kudos
3,828

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.

 

View Entire Topic
DonWilliams
Active Contributor
0 Kudos

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:

DonWilliams_1-1756441726661.png

 

 

paula_randall73
Explorer
0 Kudos
We have taken it down to 1 page and 1 report
paula_randall73
Explorer
0 Kudos
If we run it in designer and save as .rpt same message out of memory
paula_randall73
Explorer
0 Kudos
no UFL's just one report
DonWilliams
Active Contributor
0 Kudos
This brings up a memory of a discussion I had with R&D a few years ago... SAP created their own charting dll's, no longer 3D charting engine. But I don't recall the details now, it was something about the Charting dll's not being included with CR for VS or something like that. I'll ping R&D and see if charts should work in a WEB app and if so what's missie to cause this error. FYI - out of memory is a misleading error in this case....
DonWilliams
Active Contributor
0 Kudos
I talked to R&D and he doesn't see any issues and suggests you are likely missing a dependency or IIS configuration, your chart should work fine.... Does it work on your DEV PC?