Export map as image from VBA-macro?

  • 1
  • Question
  • Updated 3 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.

Photo of Lars H

Lars H

  • 1 Post
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Nick Duffill

Nick Duffill, Champion

  • 601 Posts
  • 245 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.ExportSized("C:\Temp\central topic export.png",mmGraphicTypePng, 1000, 1000)
    End With
End Sub