Free Support Forum - aspose.com

Insert of EMF-Files

Hello,

our company is interested in Aspose.Word, therefore I downloaded
the evaluation-copy. We want to use it in a current project,
so this issue is a bit urgent for me.

I modified the builder-sample, by inserting a EMF-File instead of
a GIF-File:
'Dim image As System.Drawing.Image = System.Drawing.Image.FromFile(MapPath(".")+ “\…\Documents\Aspose.Word.gif”)
Dim image As System.Drawing.Image = System.Drawing.Image.FromFile (“C:\mycode\Projects\WindowsApplication1\bin\myemf.emf”)


The result is not too satisfying, the EMF-File in the resulting Word document has a black background instead of a white one. And it looks like a bitmap not like a vectorgraphic.

Does Apose.Word support EMF-Files to be inserted into Word documents?
If so, what is the correct way doing so?

Regards and thank you for your help in advance,
Mirjam Rupp

Hi,

We certainly want to support inserting emf files. Can you please email your emf file to word@aspose.com. We have done some testing with emf files but there is a lot of poorly documented steps in the Word format documentation so we might have to do a bit more research.

Hi,

This is now working in Aspose.Word 1.5.4.

Hi Roman,

thank you for your quick response, this works now.

Regards,

Mirjam Rupp