Free Support Forum - aspose.com

Inserting image into word document

i am getting error while I am trying to insert a “.PCX” image file into word.
when i try to insert a jpeg file i do not see problem

here is the code :

private void HandleMergeEmployeePhoto(object sender, MergeImageFieldEventArgs e)
{
System.Drawing.Image image = System.Drawing.Image.FromFile(@“C:\test.prx”);
e.Image=image;
}

Can some one help me ?

sorry the above file name is “test.pcx” not test.prx

thank you

Hi,

Thank you for considering Aspose.

It seems like PCX images are not supported by Image.FromFile.