Localize for preview dialog

Posted by: fsegui on 15 February 2022, 11:08 pm EST

  • Posted 15 February 2022, 11:08 pm EST

    When printing C1Schedule, we're opening first the form options. On this form, the localization is OK.
    Then if we click on "Preview", it opens the preview dialog form. But no localization is applied.

    In the project, I have the following resources files. Do I miss something?

  • Replied 16 February 2022, 6:22 pm EST


    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",

    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

  • Replied 16 February 2022, 8:10 pm EST

    I'm already using the C1.Win.PrintPreview.4.5.2 (version 513) and the control is in the main project.
  • Replied 16 February 2022, 8:17 pm EST

    I think in this case the file should be named "C1.Win.PrintPreview.4.5.2.resx".

    Best regards

  • Replied 17 February 2022, 3:37 am EST


    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.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels