SAP Knowledge Base Article - Public

1745262 - Export to xls file format causes C++ exception when using VS2010

Symptom

  • Exporting a report with subreports to XLS file format - Microsoft Excel (97-2003) (*.XLS)
  • Windows application throws the following error:

Runtime Error!

Program:
<path to application exe>

This application has requested the Runtime to terminate it in an unusual way
Please contact the application's support team for more information

 exe error.jpg

  • Running the project in Visual Studio 2010 IDE results in the error:

vshost32.exe has stopped working

  •  Web and WPF project throw similar errors

Environment

  • Crystal Reports for Visual Studio 2010, Service Pack 4
  • Visual Studio 2010

Cause

  • The issue has been escalated for a resolution
  • Reference: ADAPT01653219

Resolution

Keywords

CR2010 2010 CR4VS2010 CR4VS VS2010 NET2010 Crystal Reports for .NET Framework 4.0 crforvs 13 , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio