Importing Style Settings

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by Marianne
Version: 4.0.0236
Avatar
Since moving to 4.0, I'm unable to import style settings, even if the style settings were exported with 4.0, I just get the error: Must specify valid information for parsing in the string

Here's the code I'm using:
                string settingsFile = <File>;
                if (File.Exists(settingsFile))
                {
                    try{
                        lang.IsUpdating = true;
                        XmlDocument xmlDoc = new XmlDocument();
                        xmlDoc.Load(settingsFile);
                        lang.HighlightingStyles.ImportStyleSettings(xmlDoc.FirstChild);
                        lang.IsUpdating = false;
                    }
                    catch(Exception e){
                        <Exception code>
                    }
                }
This same code worked fine previously in 3.1

[Modified at 12/07/2006 10:22 AM]

------------------------------- Marianne

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks, this appears to be a 4.0 bug. It's now fixed for the next maintenance release.


Actipro Software Support

The latest build of this product (v2020.1 build 0400) was released 29 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.