1738819 - HTML export navigation controls not translated to localize language

SAP Knowledge Base Articles - public

1738819 - HTML export navigation controls not translated to localize language


When exporting to German or any localized language the Navigation controls are in English only.

Reproducing the Issue

 When exporting to HTML format, the navigation bar is not translated to the Preferred Viewing Language.

The export code is:

CrystalDecisions.CrystalReports.Engine.ReportDocument oReportDoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
//Set locale for messages
oReportDoc.ReportClientDocument.ProductLocaleID = CeLocale.ceLocaleGerman;
//Set locale for system default values.
m_oInProcReportDocument.ReportClientDocument.PreferredViewingLocaleID = CeLocale.ceLocaleGerman;
CrystalDecisions.Shared.ExportOptions oExportOptions = new CrystalDecisions.Shared.ExportOptions();
CrystalDecisions.Shared.DiskFileDestinationOptions diskOpts = new CrystalDecisions.Shared.DiskFileDestinationOptions();
CrystalDecisions.Shared.HTMLFormatOptions oHTMLFormat = new CrystalDecisions.Shared.HTMLFormatOptions();
string strFileName = @"c:\HTML\Test.html";
// Set the export format and destination.
oExportOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.HTML40; }

oExportOptions.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile;
//Set export options based on current settings
oHTMLFormat.HTMLHasPageNavigator = true;
oHTMLFormat.HTMLEnableSeparatedPages = true;
oHTMLFormat.UsePageRange = false;
oHTMLFormat.HTMLBaseFolderName = null;
oHTMLFormat.HTMLFileName = strFileName;
oExportOptions.ExportFormatOptions = oHTMLFormat;
// Set the disk file options.
diskOpts.DiskFileName = strFileName;
oExportOptions.DestinationOptions = diskOpts;
// Export the report.

Note: Also tried setting the thread executing the code to be German locale, still get English navigation bar.


The issues was tracked with ADAPT01624661

Resolved in Service Pack 4 for Crystal Reports for Visual Studio 2010


Crystal Reports for Visual Studio 2010, Export to HTML localization , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem


SAP Crystal Reports, developer version for Microsoft Visual Studio