Importing Style Settings

SyntaxEditor for Windows Forms Forum

Posted 12 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 12 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 (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.