Posted 16 February 2022, 8:08 am EST - Updated 3 October 2022, 10:39 pm EST
Localize for preview dialog
Posted by: fsegui on 16 February 2022, 8:08 am EST
-
-
Posted 17 February 2022, 3:22 am EST
Hi,
what version do you use? In recent versions, the “C1PrintPreviewControl” was moved to the assembly “C1.Win.PrintPreview.4.5.2”.
Is your control in the project that produces the exe, or in another class library project?
If the latter is true, you have to register the localized resources like this:C1.Win.C1Preview.Strings.ResourceManager = new System.Resources.ResourceManager("My.Namespace.C1LocalizedResources.C1.Win.PrintPreview.4.5.2", typeof(AnyTypeInMyAssembly).Assembly);
In our application, we also copied the localized texts to the invariant culture (“C1.Win.C1Report.4.5.2.resx”), but this might be caused by the fact that we do not deploy the satellite assemblies.
Hope any of these hints helps
Wolfgang
-
Posted 17 February 2022, 5:10 am EST
Hi,
I’m already using the C1.Win.PrintPreview.4.5.2 (version 513) and the control is in the main project. -
Posted 17 February 2022, 5:17 am EST
I think in this case the file should be named “C1.Win.PrintPreview.4.5.2.resx”.
Best regards
Wolfgang
-
Posted 17 February 2022, 12:37 pm EST
Hi,
You need to generate a C1.Win.PrintPreview.4.5.2.fr.resx file to localize the print preview dialog form. You can easily generate it by following the steps below.
→ Create a new form
→ Drag a C1PrintPreviewControl into your form
→ Go into the Smart Designer and choose the Localize option
→ Create and Save the Resx file for your required culture.Now you can use this Resx file in your main project. Please let us know if you need any other information.
Regards.