SAP Knowledge Base Article - Public

1706167 - Error: Failed to export the report - when exporting to PDF file format

Symptom

  • Report is using non TrueType font (Hevetica Neue)
  • Exporting to PDF from the Crystal Reports Designer does not cause any errors
  • Exporting to PDF from a VS .NET application results int eh error:

Failed to export the report

Environment

  • Crystal Reports for Visual Studio 2010
  • Visual Studio 2010

Reproducing the Issue

Export a report that uses non TrueType font to PDF file format from a VS .NET application

Cause

  • When using Font, InstalledFontCollection, FontDialog and SystemFonts, the following font formats are not allowed by the .NET Framework:

Device-specific/printer fonts
Raster/bitmap fonts
OpenType (Microsoft fonts are allowed, Adobe fonts are not allowed)
PostScript Type 1

  • GDI+ only supports minimal TrueType fonts

Resolution

  • Use TrueTypeFonts
  • use OpenType fonts from Miscrosoft only

Keywords

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

Product

Crystal Reports 2008 V1 ; SAP Crystal Reports, developer version for Microsoft Visual Studio