Posted 12 years ago by Alex
Version: 4.0.0243
Avatar
Hello,

Here is my case – I have editor embedded into a UserControl and I often use the ParseService to parse the document like this

Document doc = editor.Document;
string key = SemanticParserServiceRequest.GetParseHashKey(doc, doc);
SemanticParserService.WaitForParse(key);
CompilationUnit unit = doc.SemanticParseData as CompilationUnit;

Everything is working great except one case. Sometimes I don’t need to show the editor, but still need to load and parse the document. But I can't make it working - when the editor isn’t shown yet, the SemanticParseData is always empty. It is starts working again after I show the control. Is there a way to resolve this problem and to parse document while the control is hidden?

Thanks
Alex

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Alex,

Actually just check out our DocumentOutlineForm QuickStart. It is a great sample of doing semantic parsing without using a SyntaxEditor at all.


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.