How to insert a floating “Topic” with text into a map?

  • 1
  • Question
  • Updated 1 week ago
  • (Edited)

Used by: Win 7x64;
Visual Studio 2019;
MindManager 2019;

Application Logic:  - The code receives the text;
 - The code creates a floating theme;
 - The code inserts the text into the floating theme;
 - The code inserts the floating theme into themap;
 

Problem:  In the line - mm.Topic topic = new mm.Topic (); I get an error.  

Error:
 "Failed to get COM class factory  for component with CLSID {169B91A2-8B3F-4C13-8FD6-81D4C2F76F3D}  due to the following error:  80040154 The class is not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))."

The code:
using mm = Mindjet.MindManager.Interop;
 
mm.Application app;
mm.Document docActiv;
public Form1()
{
    InitializeComponent();
    app = new mm.Application();
}
 
public void SetXMLProperty(string xmlContent)
{
    docActiv = app.ActiveDocument;
    mm.Topic topic = new mm.Topic();
    
    topic.Xml = xmlContent;
    docActiv.FloatingTopics.Insert(topic);
Question.
How to insert a floating "Topic" with text into a map?
Photo of Ivan

Ivan

  • 51 Posts
  • 0 Reply Likes

Posted 1 week ago

  • 1

Be the first to post a reply!