How to integrate SAP Crystal Reports in Visual Studio 2017

175,446

Solution 1

Visual Studio 2017 is supported in Crystal Reports SP 21, which is available for download as of 1 Sep 2017.

Solution 2

This error occurs because at the end of the installation of Crystal Reports SP21 for Visual Studio 2017, the following screen appears:

enter image description here

Do not check to install in runtime, this default to come marked to me is wrong. Install only Crystal Reports SP21 for Visual Studio 2017.

Solution 3

Please wait Support Pack 21 in September 2017

UPDATE: More info

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

VS 2017 - Tested opening existing app and it works, CR for VS is not integrated into the app so no new CR projects available- should be fully integrated in SP 21

About release

Link: https://answers.sap.com/questions/168439/crystal-report-for-vs-2017.html

Moderator Don Williams said:

Not supported yet, I tried to get it into SP 20 but due to time constraints DEV can't get it into VS until SP 21, due out in September time...

Solution 4

I had a workaround for this problem. I created dll project with viewer in vs2015 and used this dll in vs2017. Report showing perfectly.

Solution 5

To integrate SAP Crystal Reports with Visual Studio 2017 below steps needs to be followed right:

  • Uninstall all installed components from system related to Crystal Report. [If any]
  • Install compatible Crystal Report Developer Edition (as per target VS) with administrator priviledge. [As of writing, latest compatible service pack is 23]
    • Install appropriate Crystal Report Runtime (x86/ x64) for Visual Studio. [Not mandatory]
  • Open solution in VS and remove all assembly references from project related to Crystal Report. [If any]
  • Include following assembly references in project:
    • CrystalDecisions.CrystalReports.Engine
    • CrystalDecisions.ReportSource
    • CrystalDecisions.Shared
    • CrystalDecisions.CrystalReports.Design
    • CrystalDecisions.VSDesigner
  • Make sure "Copy Local" property is set to "True" in reference properties.
  • Build/ Rebuild project.
Share:
175,446
ˈvɔlə
Author by

ˈvɔlə

I am a Microsoft fanboy I like building web applications and desktop software. My main interests are: .NET 5+ C# 9 Blazor MVC WPF / MVVM Entity Framework Database Design User Interface Design and User Experience Visual Studio

Updated on May 29, 2020

Comments

  • ˈvɔlə
    ˈvɔlə almost 4 years

    Is it possible to use the report designer in the current release of Visual Studio 2017?

    The SAP crystal report wiki for visual studio integration only states: "RC build currently not supported - Tested opening existing app and it works".

    I have installed the latest developer SDK (Support Pack 19 v.13.0.19.2312), but when I try to open an existing report (.rpt), i got the following message:

    There is no editor available for 'C:...\Report.rpt'.

    Make sure the application for the file type (.rpt) is installed.


    EDIT (2018/02/28)

    By the time of asking this question I had installed SP19 on my machine. The current version which should resolve all my issues is SP22, which was released at 2018/01/11. All necessary information and download links are still available in the SAP crystal report wiki.


    EDIT (2019/03/20)

    Thanks to @ANewGuyInTown: The current version is 13.0.24.

  • ˈvɔlə
    ˈvɔlə almost 7 years
    Can you please provide any source which states that it won't be part of SP20? Thank you sir.
  • IT Vlogs
    IT Vlogs almost 7 years
    Sorry i have update source. I am waiting SP 21 release too.
  • ˈvɔlə
    ˈvɔlə over 6 years
    Can someone confirm that this workaround is working with full feature support?
  • Yogesh Daga
    Yogesh Daga over 6 years
    I had Now checked. It is working. I am now using vs2017 and editing reports in crystal reports ide. Its working flawlessly and is more convinient.
  • East of Nowhere
    East of Nowhere over 6 years
    I installed SP21 (yes I remembered to run the install .exe as an admin), removed then re-added my project's dll references (CrystalReports.Engine, .ReportSource, .Shared, & .Web), rebuilt my project, and I still can't open .rpt files in VS2017. It just opens it like a binary file, 00000280 21 00 00 00 22 00 00 00 23 00 00 00 24 00 00 !..."...#...$... and so on.
  • irfandar
    irfandar over 6 years
    It happened to me as well so i removed it; restarted by pc and installed it again and then restarted to make it work.
  • East of Nowhere
    East of Nowhere over 6 years
    Thanks, but still no luck. I am using VS 2017 that is v 15.3.4. Maybe Crystal Reports still has a problem with the exact version of VS I have, and I need to wait for another service pack or fix from SAP?
  • DrCJones
    DrCJones over 6 years
    This worked for me: 1. Closed VS 2. Uninstalled the CR Runtime engine from my machine. 3. Uninstalled CR from machine 4. Installed the new CR and Runtime x64 (Runtime asks to be installed at the end of the CR installation) 5. Shut down computer completely. Then turned it on. 6. Opened project in VS 7. Clean 8. Rebuild 9. Opened report and it worked as expected, showing the report. Might not need all those steps but that's common procedure for me when dealing with plugin and framework updates like this. Win 10 w/latest updates, VS 15.3.5
  • xariez
    xariez over 6 years
    Tried all the above with no luck. I have the same configurations as @DrCJones
  • Denis Lazendić
    Denis Lazendić over 6 years
    Works for me too after reinstalling. I can see and open rpt files. But when i try to open the report through my project i get error: could not load file or assembly crystaldecisions.reportappserver.clientdoc. Can anyone help?
  • Shanu Mehta
    Shanu Mehta over 6 years
    what if i have checked this checkbox and my system showing " No InprocServer32 registered for package [VsRptDesigner Package] c:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\CRDesigner.dll " error message while opening crystal report from vs2017 @DenisLazendić
  • Abdul
    Abdul over 6 years
    Tried all, not working. CR for VS2010 has also stopped working after installing this. Uninstall all for both VS2010 and VS2017. and then reinstalled but same result.
  • Abdul Rahman
    Abdul Rahman about 6 years
    Great, its working for me fine with Visual Studio 2017 (64-bit)
  • Alfonso Villegas
    Alfonso Villegas about 6 years
    @DrCJones solution worked for me. I have VS 15.5.6 installed on my computer... Cheers.
  • M_Mogharrabi
    M_Mogharrabi over 5 years
    hi Marcal, would you please get me a link to download CRforVS 2017? I have searched for hours but i could not fid any thing
  • Shahid Raees PMP
    Shahid Raees PMP over 5 years
    Please download it from here: crystalreports.com/crystal-reports-visual-studio
  • eol
    eol about 5 years
    Can you clarify for me on adding assembly references. Are you browsing to GAC folder to do that or somewhere else?
  • Nadim Hossain Sonet
    Nadim Hossain Sonet about 5 years
    Right click on "References" on Project in Solution Explorer. Then select "Add References". Then select on "Assemblies". Include required assemblies. @eol