We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Error "The specified language can not be found." After importing a new config

Thread ID:

Created:

Updated:

Platform:

Replies:

150386 Jan 5,2020 12:00 AM UTC Jan 7,2020 05:09 PM UTC WinForms 3
loading
Tags: EditControl
andy
Asked On January 5, 2020 12:00 AM UTC

Hello All,

I'm having an issue where I load an external config and then try to switch to a Known Language, I get the following error “The specified language cannot be found."

 I load an external config using:

         SnippetEditControl.BackgroundColor = New

        Syncfusion.Drawing.BrushInfo(ColorTranslator.FromHtml("#ffffff"))

        SnippetEditControl.Style = EditControlStyle.Default

        SnippetEditControl.Configurator.Open(DefaultThemeConfig)

        SnippetEditControl.ApplyConfiguration("C#")

        SnippetEditControl.SelectionTextColor = ColorTranslator.FromHtml("#bfdfff")

 This works Fine 

Later, when I try load a ‘KnownLanguages’ of 'Text' I get the error

             Select Case SelectedLanguage

                Case "Text"

                    SnippetEditControl.ApplyConfiguration(KnownLanguages.Text)

                    ........

            End Select

It seems the 'Configuratorforgets the 'KnownLanguages'. How do I bring these back?

Thanks

Andy


Niranjan Kumar Gopalan [Syncfusion]
Replied On January 6, 2020 10:42 AM UTC

Hi Andy, 

Thanks for contacting Syncfusion support. 

We have checked your query ”ApplyConfiguration method results in error when I change Known languages ”. The mentioned issue occurs when you change the value of ApplyConfiguration from C# to KnownLanguages.Text  because your external Config.xml file seems to be missing the codes for text language. Inorder to change the configurator to default please reset the configurator using below code and let us know if you have further queries. 

VB: 
SnippetEditControl.Configurator.Reset() 
SnippetEditControl.ApplyConfiguration(KnownLanguages.Text) 


Regards, 
Niranjan Kumar 


andy
Replied On January 7, 2020 07:27 AM UTC

Many thanks

Niranjan Kumar Gopalan [Syncfusion]
Replied On January 7, 2020 05:09 PM UTC

  
Hi Andy, 

Thanks for your update. 

Please let us know if you require further assistance. We will be happy to assist you. 

Regards, 
Niranjan Kumar Gopalan 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon