cancel
Showing results for 
Search instead for 
Did you mean: 

Localization of Crystal report Export and Print window...

Former Member
0 Kudos

Hello You All,

I am using VS 2005 and Crystal Report 10.2 which is coming with VS 2005.

I have developed an web application which uses crystal report 10.2.

I have localized the crystal report tool bar, export and print window for German Language which is working fine after deployment.

Now I need to localize the same tool bar, export and print window to support Cyrillic text which shall be run on Russian OS.

After a long surfing in internet, I did not find any language resource file for Russian language.

That's why i have considered German language resource file as the base file and translated every German text in CRWebFormViewer.txt to Cyrillic text.

Then i have used the below command lines

1) resgen /compile CRWebFormViewer.txt,CrystalDecisions.Web.resources

2) al.exe /t:lib /embed:CrystalDecisions.Web.resources /culture:ru /out:CrystalDecisions.Web.custom_resources.dll

Then i have put this "CrystalDecisions.Web.custom_resources.dll" file inside "ru" folder of my Website's virtual directory.

All the Tool bar texts for all tool bar icons are being visible correctly, but when i pressed export or print button on tool bar of crystal report, i am always seeing another html page which is fully blank page.

I have spent almost 1 day for this and tried the blow mentioned solutions Still no luck.

http://msdn.microsoft.com/en-us/library/ms227625%28v=VS.80%29.aspx

Any help on this shall be highly appreciable.

Thanks a ton in advance.

Bibhudatta

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

I think [this|http://msdn.microsoft.com/en-us/library/ms227600(VS.80).aspx] page will help. As I read the linked resources to the page;

"Compiling the Custom Resource Files" in part 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

Also, before proceeding any further, make sure you are working with SP1 for CR 10.2:

https://smpdl.sap-ag.de/~sapidp/012002523100006007872008E/crvs05sp1.exe

Ludek

Former Member
0 Kudos

Hi Ludek,

Thank you very much.

I installed SP1 for Crystal report 10.2.

Restarted the PC.

For Russian language the culture name is ru not ro.

As the [download location|http://www.businessobjects.com/global/doc/dev_zone/LanguageResourceFiles.zip] of language resource file does not provide any txt file for ru language, i have used German i.e. de resource file as the base one.

I used only two files CRWebFormViewer.txt and SCRShared.txt to create custom resource file. Viewer.txt file is used for windows application but my application is a web application.

I modify some german string russian string (i.e. Cyrillic text) in the above said two files.

Then i executed the below commands to generate resource file.

resgen /compile CRWebFormViewer.txt,CrystalDecisions.Web.resources

resgen /compile SCRShared.txt,CrystalDecisions.Shared.resources

al.exe /t:lib /embed:CrystalDecisions.Web.resources /culture:ru /out:CrystalDecisions.Web.custom_resources.dll

al.exe /t:lib /embed:CrystalDecisions.Shared.resources /culture:ru /out:CrystalDecisions.Shared.custom_resources.dll

Then i put these two dlls under <web_project>\Bin\ru folder.

Then i have execute my web application by setting the culture to ru-RU.

RESULT

-


Now i am able to see russian string as a tooltip of the crystal report toolbar icons. These texts are coming from CRWebFormViewer.txt file.

But while i am clicking on export toolbar icon, a new html window is opening and all the text are in german. These text should come from SCRShared.txt file. Even i modify some text to russian string inside this file, still the texts are replaced by german string.

I am now confused. What is wrong i am doing.

Please any light on this shall be grateful.

Thank you.

Bibhudatta

former_member183750
Active Contributor
0 Kudos

Hello

What you've done is localize the viewer. Now you have to localize the export and other prompt screens as necessary (apologies, I did not realize this in the first palce either).

For 10.2, the prompt window strings are in .js files.

For IIS websites:

C:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727\CrystalReportWebFormViewer3\js

For filesystem websites: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles\CrystalReportWebFormViewer3\js

You need to create a u201Cstrings_ru.jsu201D file to have it display correctly. You should be able to find otehr localized string files there. E.g.; strings_de.JS and pattern your self on that.

Ludek

Former Member
0 Kudos

Hi Ludek,

Thank you very much. Now the issue got resolved.

Best regards,

Bibhudatta

former_member183750
Active Contributor
0 Kudos

Good to know. I've filed this away as a source of a future blog on how to localize CR. Many thanks for bringing this up.

Ludek

Answers (0)