Free Support Forum - aspose.com

How to insert an image with IntPtr or Metafile type

Hi all,

I want to insert a vector image to word so I used Metafile class in .Net frameword to create a .EMF file. I could use pure .Net code to save that file to physical drive with .emf extension but for now I need to directly insert that .emf file to MS Word without saving to physical drive.

My function can return either IntPtr or Metafile type. Does Aspose.Word support any function to insert this kind of images to MS Word?

This task is very urgent with me, I really appreciate your help.

Thanks,
Mike

Hi Mike,


Thanks for your inquiry. Yes, of course, you can insert EMF and WMF images into Microsoft Word document using Aspose.Words. If you have some troubles with this, please attach your image here for testing. I will check the issue on my side and provide you more information. I would suggest you please read the following article on inserting images from a .NET System.Drawing.Imageobject:
http://www.aspose.com/docs/display/wordsnet/InsertImage+Method
Best regards,