ActiveReports for .NET 3 Online Help Request technical support
Localizing the Viewer Control
See Also
User Guide > How-To Section > Localizing the Viewer Control

Glossary Item Box

In ActiveReports, you can localize settings for the Windows Forms Viewer control by modifying a provided "strings" text file, generating a resources file, embedding the resources file in your ActiveReports project and adding the localization code needed in your Windows Form Load event.

Making localization changes to the strings text file

To make changes to the text file

  1. Click here to open the text file in your browser.
  2. Right-click on the text and select "View Source."
  3. This will open the file in Notepad. Make changes to localize settings for the viewer control.
  4. From the File menu, select Save As. Rename your text file "localization.txt" and save it to the location of your choice.

Generating the resources file from the text file

To generate the resources file

  1. Open a Visual Studio .NET 2003 or 2005 command prompt.
  2. Change the prompt path to reflect the location of your localization.txt file.
  3. Type "resgen localization.txt localization.resources. "
  4. This creates a resources file in the same location as the text file.

Adding the resources file to your Windows application

To add the resources file

  1. Open your ActiveReports Windows application which includes an ActiveReports Windows Forms Viewer control.
  2. In the Solution Explorer window, click on the icon to "Show All Files."
  3. Right-click on the name of your project and click Add > Add Existing Item.
  4. Select the appropriate file path to the localization.resources file and click Open.
  5. This adds the resources file to your application.

Adding code to the Windows Form Load event

To write the code for the viewer in Visual Basic and C#

See Also

©2009. All Rights Reserved.