Export map as image from VBA-macro?

  • 1
  • Question
  • Updated 2 years ago
Is it possible to export mindmaps to image files from a VBA-macro?
It is possible from File->Export, however I need to automate the task.

http://onlinehelp.mindjet.com/help/Mindmanager/17/EN/export_maps.htm#Export_the_map_as_an_image_file
Photo of Lars H

Lars H

  • 1 Post
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Nick Duffill

Nick Duffill, Champion

  • 528 Posts
  • 179 Reply Likes
The Document object contains a "GraphicExport" object that handles graphic exports. You can add topics to it then run the export method to produce an image file. There are many options to experiment with. Try this:
Sub Main
    With ActiveDocument
        .GraphicExport.Reset
        .GraphicExport.AddTopic(.CentralTopic)
        .GraphicExport.ExportSized("C:\Temp\central topic export.png",mmGraphicTypePng, 1000, 1000)
    End With
End Sub
(Edited)