SAP Knowledge Base Article - Public

2553621 - CR for VS SP 21 integration into VS 2017 on Windows 7 or 10 32 bit only does not work

Symptom

Create a new Project fails to do so properly Cannot open a report in VS IDE, opens in binary mode

Environment

  • Crystal Reports for Visual Studio SP 21
  • Windows 7 x86
  • Windows 10 x86

Reproducing the Issue

When creating a new Desktop application you can select Crystal Reports project and then the Project wizard takes over but generates multiple errors:

The 'Crystal Reports Tools Package' package did not load correctly

Followed by:

The document ..... CrystalReport1.rpt is already open. Do you want to close it?

After clicking through these errors the Report is opened in binary mode.

Also, on the Form page there is another Viewer labelled "CrystalReport11" which has been redirected in the Form1.Design.cs file it adds the redirect to the 11 viewer:

private CrystalDecisions.Windows.Forms.CrystalReportViewer crystalReportViewer1;

private CrystalReport1 CrystalReport11;

This needs to be removed.

Opening an existing project will work but you will not be able to edit a Report in VS

Resolution

The issue has been reported to R&D and a fix has been done and attached to this KBA.

It will also be updated in SP 22.

How to fix this for 32 bit OS's ONLY:

  1. Close Visual Studio 2017
  2. Go to the Visual Studio 2017 install directory, eg C:\Program Files\Microsoft Visual Studio\2017\Professional
  3. In below path, replace CRVsPackage.pkgdef with the attached file and unzip the file and extract it to this folder C:\Program Files\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\SAP
  4. Open a "Developer Command Prompt for VS 2017", it is listed under Programs and features for VS 2017
  5. From this command window type in: 'devenv /setup', without the single quotes
  6. Restart VS 2017

Please note: this package is for 32 bit OS's only, do not install it on your 64 bit versions of Windows.

Keywords

cr for vs, windows 7 x86, windows 10 x86, The 'Crystal Reports Tools Package' package did not load correctly, CRVsPackage.pkgdef , KBA , BI-RA-CR-SDK , SDK related, including Java/.NET etc. , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio

Attachments

CRVsPackage.zip