Adding emf failes

I am adding EMF with this code to the presentation( you may insert it into demo WF presentation after creating presentation:

 System.IO.FileStream fpic = new System.IO.FileStream(MapPath(".") + “\2.emf”, 
System.IO.FileMode.Open, System.IO.FileAccess.Read);
>> int picid = pres.Pictures.Add(new Picture( pres, fpic));
fpic.Close();
but with attachted EMF i get Invalid parameter used error
Can you suggest any ways to fix it?


Thank you, Philipp. It will be fixed asap.

Dear Philipp,

Please check new 1.7.3 hot fix. We have fixed large metafiles importing.
https://blog.aspose.com/category/aspose-blogs/alexey-zhilin/