Can I use Crystal Reports in Visual Studio 2022?

Has anyone tried Crystal Reports with Visual Studio 2022? I have an ASP.NET MVC app using Bootstrap and Crystal Reports. Wondering if I can run and maintain it in Visual Studio 2022.

8,373 7 7 gold badges 42 42 silver badges 60 60 bronze badges asked Nov 28, 2021 at 14:09 Usman Nazir Usman Nazir 447 1 1 gold badge 5 5 silver badges 12 12 bronze badges Commented Nov 28, 2021 at 17:11

The link in the comment above is quite old. It is from 5 months ago. The question from the OP is valid because VS2022 has now been in General Availability for a month. I am asking the same questions because there is no update on it. I contacted SAP and they said "SP30 should run fine in VS2022." But when I tried it, the designer would not open.

Commented Dec 2, 2021 at 21:40

11 Answers 11

Crystal report patch for Visual Studio 2022 is SP32, which has been released. The download address is: CR for Visual Studio SP32 64b installer (VS 2022 and above),or just download runtime:CR for Visual Studio SP32 CR Runtime 64-bit.
Uninstall the old version first, and then download the new version to install.
Here are the official release notes:

  1. Microsoft Visual Studio 2022 (64bit)
  2. Security updates
  3. Addressed customer Incidents
  4. New Data source: HANA 2.0 SP06
  5. Platform support: Win 10 21H2
  6. Platform support: Win 11 21H2 - Check KBA 3204578 for a Windows 11 specific OLE image issue and workaround. Platform support: Chrome Browser version 101
answered May 23, 2022 at 6:09 166 1 1 silver badge 4 4 bronze badges Is it available for 32 bit ? Commented Jun 13, 2022 at 13:51 Commented Jun 21, 2022 at 1:43

The only problem with that installer (32-bit) is that I only have VS2022 installed, so the SP32 32b installer won't let it run. I suppose I can try to reinstall VS2019 just to get the 32-bit versions installed, but that seems like a lot of hoops to jump through.

Commented Jan 23, 2023 at 21:06

If anyone is having problems trying to load a .rpt file (it shows as a binary file) in Visual Studio 2022, try reinstalling SAP for Visual Studio as an administrator.

Commented Apr 27, 2023 at 21:59 Is this working for community version of visual Studio? Commented Sep 19, 2023 at 6:24

CR for VS 2022 requires a 64 bit installer so it can integrate with the VS IDE, has CR Designer Basic built in 64 bit now. At this time SP 34 is available. NOTE: CR for VS does NOT SUPPORT the Nuget package, please don't use it, it comes from a third party site and they have reversioned it. Please download it from here or the WIKI link above: https://origin.softwaredownloads.sap.com/public/site/index.html Select CR for Visual Studio SP34 64b installer (VS 2022 and above) https://origin-az.softwaredownloads.sap.com/public/file/0020000000674372023 At the end it prompts to install the 32 bit runtime also. You can set the Project Properties to x86 or x64, don't use AnyCPU, CR runtime is your app platform and not the OS Platform. VS 2022 does have issue creating WEB app's in one project type, sorry I don't recall what it is, but if it doesn't work then you know. Set IIS to x86 or x64 and then build your project for the same, you'll notice the location redirects to the correct folder. To help upgrading I wrote a Blog on how to: https://blogs.sap.com/2020/10/30/upgrading-a-visual-studio-2008-2019-.net-project-with-the-latest-cr-.net-sdk-packages/ Pay attention to the Copy Local, must be set to False, you cannot distribute the runtime files manually, you must use the MSI packages to distribute. Also note due to Windows Security updates you likely need to copy the CRView folder into your project as well: Copy this folder into your app folder as a directory: C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13 Don't copy the 2.0 framework version, it will cause version issues if you do.

So to answer your original question you can open your Project in VS 2022 but due to the platform change VS will update the references, I believe it defaults to x64, so change it back to x86 and it will compile in x86 mode. Problem is in your distribution, VS 2022 may add some 64 bit versions. Note also there are a few 64 bit CR dll's that are used in either x86 or x64. So for now I suggest not upgrading to VS 2022.

Do it when you are do upgrade to X64 across the whole project.

One final note: CR for VS is going to end x86 builds in a few years because All mother boards support 64 bit OS's so there is no reason anymore to continue supporting x86. Running IIS in 64 bit mode is also an advantage.

PS - I started at Crystal in 1997 and CR 5 was just released, it came in both 16 and 32 bit installs on FLoppy's. Time to convert everything to 64 bit, no reason to run in 32 bit mode any more.