MSOPictures->Items->SaveToFile in Bitmap Format

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
Potz
Posts: 4
Joined: Tue Aug 28, 2007 12:20 pm

MSOPictures->Items->SaveToFile in Bitmap Format

Post 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.
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Post 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
Potz
Posts: 4
Joined: Tue Aug 28, 2007 12:20 pm

Problem with JPG files

Post 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.
Post Reply