I’m using Aspose.Diagram and Aspose.Words to Insert Visio diagram as OLE Object to Word document.
How I manually do this is:
- Open a vsd/vsdx file and press Ctrl+A Then Ctrl+C
- Switch to MS Word, press Ctrl+V
By doing this, I get a MS Visio Diagram Object which doesn’t have any blank margin. And I can double click the diagram to edit it.
Now, I use Aspose.Words.DocumentBuilder.InsertOleObject(string fileName, bool isLinked, bool asIcon, Image presentation) to do the same thing, and I find it’s hard to handle the thumbnail image.
I try to covert a jpeg from the visio file using Aspose.Diagram, but I always get a image with obvious blank margin around the shapes.
Is there a way to finish the job just as same as manually do?