Multilingual - Translate the CrustalReportViewer...Hello, I need to translate the CrystalReportViewer (Win Forms) to Norwegian.<br>In order to do this I have to translate the Language Resource File &quot;Viewer.txt&quot;, compile it and distribute it with the application, correct?<br><br>My porblem is that I cannot find the Viewer.txt Language Resource File in Norwegian, which is ok, I can translate the English one. But, where can i find the English version...?<br><br>Anyone?<br>© 2009 Microsoft Corporation. All rights reserved.Mon, 22 Sep 2008 02:28:36 Zfe7f2c02-97fb-4acc-8dea-512b26b6f7f7http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#fe7f2c02-97fb-4acc-8dea-512b26b6f7f7http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#fe7f2c02-97fb-4acc-8dea-512b26b6f7f7anders_smshttp://social.msdn.microsoft.com/Profile/en-US/?user=anders_smsMultilingual - Translate the CrustalReportViewer...Hello, I need to translate the CrystalReportViewer (Win Forms) to Norwegian.<br>In order to do this I have to translate the Language Resource File &quot;Viewer.txt&quot;, compile it and distribute it with the application, correct?<br><br>My porblem is that I cannot find the Viewer.txt Language Resource File in Norwegian, which is ok, I can translate the English one. But, where can i find the English version...?<br><br>Anyone?<br>Thu, 16 Nov 2006 09:37:52 Z2006-11-22T12:13:45Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#dd420b96-e8d7-4103-a974-5ff45144bf47http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#dd420b96-e8d7-4103-a974-5ff45144bf47Antónhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ant%u00f3nMultilingual - Translate the CrustalReportViewer...If you work with the Crystal Reports version distributed with Visual Studio, you don't have the resource files.You can download them in this link.<br><br>http://diamond.businessobjects.com/system/files/LanguageResourceFiles.zipThu, 16 Nov 2006 19:27:16 Z2006-11-16T19:27:16Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#52330b18-c7d7-4e95-9f83-4f7471b4faaehttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#52330b18-c7d7-4e95-9f83-4f7471b4faaeanders_smshttp://social.msdn.microsoft.com/Profile/en-US/?user=anders_smsMultilingual - Translate the CrustalReportViewer...Hi Anton, thanks for your reply. <br>I have downloaded those resource files before, and it does not contain an English version... that's my problem... I don't know German etc... <br><br>Need one in English that I can translate and compile.<br>Fri, 17 Nov 2006 07:30:10 Z2006-11-17T07:30:10Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#cb7cac62-1ed5-42a2-b829-d364deface4ehttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#cb7cac62-1ed5-42a2-b829-d364deface4eanders_smshttp://social.msdn.microsoft.com/Profile/en-US/?user=anders_smsMultilingual - Translate the CrustalReportViewer...Found a solution to the whole thing at last:<br><br>1. Create a working directory, e.g., C:\crystalresources, and copy the file "C:\Program Files\Common Files\Business Objects\2.7\Managed\CrystalDecisions.Windows.Forms.dll" (or wherever it is located) to the created directory<br>2. Run Visual Studio .NET 2005 Command Prompt from the start menu, and change the current directory (I assume in all the following snippets that you are located in C:\crystalresources):<br><br> cd C:\crystalresources<br><br>3. Disassemble the assembly. Don't extract the code, we are interested only in the resources.<br><br> ildasm CrystalDecisions.Windows.Forms.dll /OUT=CrystalDecisions.Windows.Forms.il /ITEM=<br><br>4. Convert the resources to the XML format.<br><br> resgen CrystalDecisions.Windows.Forms.CRViewerSys.resources CrystalDecisions.Windows.Forms.CRViewerSys.resx<br><br>5. You may delete all files in C:\crystalresources except the .resx<br><br>7. Run the resgen utility to compile the .txt files.<br><br> resgen /compile CrystalDecisions.Windows.Forms.CRViewerSys.resx,CrystalDecisions.Windows.Forms.resources<br> <br>8. Run the al.exe utility to create a DLL form the resource file (.resources). Here it is important to define your Locale, in the example below I have no for norway. (/culture:no)<br><br> al.exe /t:lib /embed:CrystalDecisions.Windows.Forms.resources /culture:no /out:CrystalDecisions.Windows.Forms.custom_resources.dll<br><br>9. Place the language resource file (.dll) in a subdirectory where your application is located. For Norwegian it would be "no".<br><br>10. Thats it.... Norwegian texts!<br><br><br>Info gotten from these locations:<br>http://marian.ideaz.sk/crystal/<br>http://support.businessobjects.com/documentation/product_guides/cr_net/vs_2005/html/crtsktutorialsothermultilingualcompilingcustom.htm<br><br>Wed, 22 Nov 2006 12:13:38 Z2006-11-22T12:13:45Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#2d8a917c-eb38-491e-a227-cfadcf5154cehttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#2d8a917c-eb38-491e-a227-cfadcf5154ceCOMA1111http://social.msdn.microsoft.com/Profile/en-US/?user=COMA1111Multilingual - Translate the CrustalReportViewer...<p>I generated the custom dll very well, but how can I integrate this dll to my project? How the viewer detect the change of language? Does the viewer will select his language according to the language of the form?</p> <p> </p> <p>Thanks</p>Thu, 07 Dec 2006 16:09:25 Z2006-12-07T16:09:25Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#9a56174c-9852-4274-bcb5-83b99ba1b5fdhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#9a56174c-9852-4274-bcb5-83b99ba1b5fdanders_smshttp://social.msdn.microsoft.com/Profile/en-US/?user=anders_smsMultilingual - Translate the CrustalReportViewer...Selecting the language in the Regional and Language Options in the control panel is supposed to be working. But that didn't really work for me. Only a few strings was translate, e.g. tooltips was still in english.<br><br>Adding this code on the form load worked:<br><br>CultureInfo ci = new CultureInfo(&quot;nb-NO&quot;);<br>Thread.CurrentThread.CurrentCulture = ci;<br>Thread.CurrentThread.CurrentUICulture = ci;<br><br>This ensures that the current culture is norwegian, and all texts are in norwegian!  You have to change it to what ever you need of course.<br>Fri, 08 Dec 2006 08:06:04 Z2006-12-08T08:06:04Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#993c6443-2335-4468-b867-3aa8a9aa2e41http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#993c6443-2335-4468-b867-3aa8a9aa2e41COMA1111http://social.msdn.microsoft.com/Profile/en-US/?user=COMA1111Multilingual - Translate the CrustalReportViewer...<p>Thanks anders.... It's working for me... I added &quot;<font color="#008080" size=2>Application</font><font size=2>.CurrentCulture = </font><font color="#0000ff" size=2>new</font><font size=2> </font><font color="#008080" size=2>CultureInfo</font><font size=2>(</font><font color="#800000" size=2>&quot;FR-CA&quot;</font><font size=2>);</font>&quot; to the main...</p> <p>Now Trying to do the same thing in web... do you have an idea?</p> <p>thanks</p>Fri, 08 Dec 2006 13:22:18 Z2006-12-08T13:22:18Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#0e38df26-71f1-4750-ab24-ff8d2dc99bc8http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#0e38df26-71f1-4750-ab24-ff8d2dc99bc8ib00042http://social.msdn.microsoft.com/Profile/en-US/?user=ib00042Multilingual - Translate the CrustalReportViewer...<p><font size=2>Hi,</font></p><font size=2><br></font> <p><font size=2>I would like to know if you are speaking about the fields of a report or if you are speaking about the viewer, where the report can be seen filled? <br></font></p> <p><font size=2>I'm trying to generate a resource file to the fields of the reports, that change based on the regional settings.</font></p> <p><font size=2>If you could help me, please let me know.</font></p><font size=2><br></font> <p><font size=2><br></font></p> <p><font size=2>Thanks.</font></p><font size=2><br></font> <p><font size=2><br></font></p> <p><font size=2>R</font><br></p>Tue, 19 Jun 2007 14:57:47 Z2007-06-19T14:57:47Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#35860d99-3443-4fca-a492-d68acc976382http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#35860d99-3443-4fca-a492-d68acc976382COMA1111http://social.msdn.microsoft.com/Profile/en-US/?user=COMA1111Multilingual - Translate the CrustalReportViewer...<p>We are speaking about the tooltip et labels of the viewer.</p> <p> </p> <p>But if you want to change fields of your reports according to your regional settings, you need to access your report and change the value of your fields.</p> <p> </p><font size=2> <p>((</font><font color="#2b91af" size=2>TextObject</font><font size=2>)ReportDocument.ReportDefinition.Sections[&quot;YourSection&quot;].ReportObjects[&quot;YourField&quot;]).Text = yourResourceValue;</font></p> <p><font size=2></font> </p> <p><font size=2> </p></font>Tue, 19 Jun 2007 17:01:05 Z2007-06-19T17:01:05Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#3c8a09cc-6bd0-4edf-bd26-99c91a3568e6http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#3c8a09cc-6bd0-4edf-bd26-99c91a3568e6ib00042http://social.msdn.microsoft.com/Profile/en-US/?user=ib00042Multilingual - Translate the CrustalReportViewer...<p><font size=2>thanks, your help was great!</font></p> <p><font size=2>Now I have other problem, if I have a subreport object in a section, how can I change the fields?</font></p> <p><font size=2>I was trying to access them directly based on the section, but I can't, my goal was making a recursive function to translate reports, but the subreport is a ReportObject not a ReportDocument, and I can't cast, I need to create one, but it doesn't exist, only within the main report.</font></p> <p><br></p> <p><font size=2>Thanks for your help.<br></font></p> <p><br></p> <p><font size=2>R<br></font></p> <p><br></p>Mon, 02 Jul 2007 16:05:29 Z2007-07-02T16:05:29Zhttp://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#1aefc897-a5c5-4d13-a8e2-7b579c45ab98http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/fe7f2c02-97fb-4acc-8dea-512b26b6f7f7#1aefc897-a5c5-4d13-a8e2-7b579c45ab98COMA1111http://social.msdn.microsoft.com/Profile/en-US/?user=COMA1111Multilingual - Translate the CrustalReportViewer...<p>Here's the way thaht i used to set sub report fileds.</p> <p> </p><font color="#0000ff" size=2> <p>protected</font><font size=2> </font><font color="#0000ff" size=2>void</font><font size=2> SetSubReportTextField(</font><font color="#0000ff" size=2>string</font><font size=2> subReport, </font><font color="#0000ff" size=2>string</font><font size=2> field, </font><font color="#0000ff" size=2>string</font><font size=2> value)</p> <p>{</p> <p>((</font><font color="#2b91af" size=2>TextObject</font><font size=2>)ReportDocument.Subreports[subReport].ReportDefinition.Sections[0].ReportObjects[field]).Text = value;</p> <p>}</p></font>Fri, 06 Jul 2007 12:12:50 Z2007-07-06T12:12:50Z