Hi all,
I have installed SAP Crystal report for Visual Studio 2010 successfully
on PC(.NET4.0, Windows Vista, Visual Studio Ultimate 2010).

Now When I am going to add rpt file in my existing project,
It automatically create .mht file and not .rpt file,
that .mht file containing instructions and link to install SAP crystal report
which I have installed already.

Anyone can tell me, what I have to do to create an .rpt file to generate Crystal Report?

Dani AI

Generated

A short diagnosis and a concise, repeatable checklist for the “Add New Item -> Crystal Report creates a .mht instead of a .rpt” symptom.

When Visual Studio drops an .mht with install instructions instead of creating an .rpt, the IDE does not have the Crystal Reports design-time integration registered — SAP documents this exact behaviour and the conditions that cause it. (userapps.support.sap.com)

Practical checklist (do these on the developer machine, in order):

  1. Close all instances of Visual Studio and stop any running debug sessions or services.
  2. Uninstall any CR runtime/MSI packages and any existing “SAP Crystal Reports, version for Microsoft Visual Studio” entries from Programs & Features.
  3. Download and run the Crystal Reports for Visual Studio Install Executable on the machine that has Visual Studio; right‑click and choose “Run as administrator.” During setup choose the 64‑bit runtime only if you will compile for x64.
  4. Make sure the Microsoft Universal C Runtime (KB2999226) and relevant Visual Studio updates are installed before the CR install. Reboot if the installer requests it. (userapps.support.sap.com)

Verify and, if needed, repair integration:

  • Reopen Visual Studio and confirm “Add New Item -> Reporting -> Crystal Report” and that the CrystalReportViewer appears in the toolbox.
  • If templates/toolbox items are still missing, reset the toolbox or run the Visual Studio setup/repair steps (for example, from an elevated Developer Command Prompt run devenv /setup or devenv /installvstemplates), then restart VS.
  • If problems persist, check the CR installer logs (see the SAP install log location) and look for conflicting Crystal/BI Platform installs or multiple CR versions. (userapps.support.sap.com)

This thread’s reports from and the install‑type clarification by match the documented cases above; the steps here add the prechecks and verification steps that make the integration stick. (userapps.support.sap.com)

I have completely uninstalled SAP Crystal Report for VS 2010 and reinstalled it.
Rebooted the machine.
It worked.

You need to download and install the "Install Executable". The "MSI" is for runtime distribution only.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.