Symptom
- Using Crystal Reports 10.2 (bundles with .NET 2005) or CR 10.5 - Crystal Reports Basic for Visual Studio 2008 (bundles with .NET 2008)
- Need to localize the tool bar for a custom language (E.g.; Russian), export and print window to support Cyrillic text
Resolution
- First compile the Custom Resource Files
- See Working with Default and Custom Language Resource Files
- In part, the above states:
Run the resgen utility to compile the .txt files, following the syntax shown below.
resgen /compile CRWebFormViewer.txt,CrystalDecisions.Web.resources
resgen /compile SCRShared.txt,CrystalDecisions.Shared.resources
resgen /compile Viewer.txt,CrystalDecisions.Windows.Forms.resourcesNote ;
Do not put a space either before or after the comma.
Run the al.exe utility to create a DLL for each resources file.
al.exe /t:lib /embed:CrystalDecisions.Web.resources /culture:ro /out:CrystalDecisions.Web.custom_resources.dll
al.exe /t:lib /embed:CrystalDecisions.Shared.resources /culture:ro /out:CrystalDecisions.Shared.custom_resources.dll
al.exe /t:lib /embed:CrystalDecisions.Windows.Forms.resources /culture:ro /out:CrystalDecisions.Windows.Forms.custom_resources.dllNote
- Use CRWebFormViewer.txt for web applications, Viewer.txt file for Windows applications
- This will localize the viewer only
- Next localize the export and other prompt screens as necessary
- The the prompt window strings for Web applications are in .js files located in C:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727\CrystalReportWebFormViewer3\js for CR 10.2, C:\Inetpub\wwwroot\aspnet_client\system_web\v2.0.50727\CrystalReportWebFormViewer4 for CR 10.5
- The the prompt window strings for Windows applications are in .js files located in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles\CrystalReportWebFormViewer3\js for CR 10.2 and for CR 10.5 the files are located in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles\CrystalReportWebFormViewer4\js
- As an example for Russian localization create a “strings_ru.js” file to have it display correctly
- Use other localized string files there as a pattern. E.g.; strings_de.JS
Keywords
KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , How To
Product
Crystal Reports 2008 V1 ; SAP Crystal Reports XI R2