Page 1 of 1

MSOPictures->Items->SaveToFile in Bitmap Format

Posted: Tue Aug 28, 2007 12:27 pm
by Potz
Hi,

I need the integrated pictures of my worksheet in the bitmap format. But The "SaveToFile" method export the pictures only in the png format.
Is there a chance to change that format to Bitmap?
I work with the Builder 5 and there is no TPNGImage class.

Thank you for your help.

Posted: Tue Aug 28, 2007 9:34 pm
by larsa
Hello

Use the TPNGImage component in order to convert the pictures to bmp format. TPNGImage is free, and can be downloaded at: http://pngdelphi.sourceforge.net/


Lars Arvidsson

Problem with JPG files

Posted: Tue Sep 04, 2007 11:44 am
by Potz
Thank you for your help.

But It's only functional with integrated BMP Files. JPG Files are exported in an invalid PNG Format. The exported file has no "PNG" in the Fileheader, so TPNGImage cannot load.

Do you have an idea, to solve this problem, too?

Thanks a lot.