cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Report Viewer not showing in VS 2022 ToolBox

GeneK
Explorer
0 Kudos

cr-viewer.pngI have tried to add the CR Viewer to a windows page but the control is not displayed in the toolbox. No Reporting tools are available. I have tried to add the tool through the "Choose Items..." option as show in the attachment. This does not add the viewer to the list. I am building a 64 bit application targeting .Net 7.0. Any idea why the Control is not showing

DellSC
Active Contributor
0 Kudos

What exactly did you install for the SDK? Was it a .msi or a .exe?

-Dell

GeneK
Explorer
0 Kudos

The CR for VS was loaded with an EXE. The Runtime was loaded with MSI.

Gene

GeneK
Explorer
0 Kudos

Since Crystal Reports does not support .NET 7.0, how can I build an 63-bit application using CR?

DonWilliams
Active Contributor
0 Kudos

I don't know what a 63-bit application is?

Use 4.7 or 4.8 Framework, CR is built using C++ and old COM and does not support the CORE framework and no plans to do so.

In VS set your project to X64, CR will automatically load the 64 bit dll's/runtime

Accepted Solutions (1)

Accepted Solutions (1)

DonWilliams
Active Contributor
0 Kudos

Only need the 32 bit MSI installed at the end of the VS installer so you have both options and so VS doesn't complain.

Um, Framework has nothing to do with the platform.

VS 2022 is a 64 bit IDE and CR runtime is used for your App platform and not the OS.

In the Project Properties set the Project to X64, not AnyCPU.

Simply adding the Viewer to the ToolBox doesn't add it to your project, you have to drag and drop the Viewer from the ToolBox onto your Form.

App.config and your project references should then show Engine, Shared and Viewer, plus any other References you select:

NOTE: Copy Local must be set to false for all CR Assemblies, \bin folder should not have any CR dll's in it:

Samples on my WIKI page are complete and should work:

how-to-parameters-in-crystal-reports-for-visual-studio-net

Printing Crystal Reports in .NET

And see my Blog for upgrading projects:

https://blogs.sap.com/2020/10/30/upgrading-a-visual-studio-2008-2019-.net-project-with-the-latest-cr...

Don

Answers (2)

Answers (2)

0 Kudos

Remember to install the 64Bit CR Runtime as well if your VS application targets 'Any CPU' or X64.

DonWilliams
Active Contributor
0 Kudos

A couple of things you need to do.

Install the VS 2022 EXE, and be sure to right click on setup.exe and select Run As Administrator, even if you are a local Admin.

CR runtime doesn't support any framework higher than 4.8.

And this is the file to integrate into VS:

CR for Visual Studio SP33 64b installer (VS 2022 and above)

MSI's are for distribution only, not required to install manually on Dev PC.

At the end of the install it will prompt for 32 bit runtime, it needs to be installed so click OK.

GeneK
Explorer
0 Kudos

I am still unable to see the CR Viewer control. Why am loading a 32 bit runtime for a 64 bit application? When I execute the program is the runtime being used? Uf CR does not support anything over .Net 4.7, then how can it be compatible with a 64 git application?

Gene