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. Image for the cookie policy date
close icon

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

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


3 Replies

UN Unknown Syncfusion Team 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 



AN andy January 7, 2020 07:27 AM UTC

Many thanks


UN Unknown Syncfusion Team 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 


Loader.
Live Chat Icon For mobile
Up arrow icon