Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #7045

Writeexcel gem - bitmap image is not writing into the spreadsheet

Newsgroups comp.lang.ruby
Date 2014-11-17 02:19 -0800
Message-ID <bd24f8a1-7def-4a70-a74d-bf84692337b5@googlegroups.com> (permalink)
Subject Writeexcel gem - bitmap image is not writing into the spreadsheet
From sathish.thandavan@gmail.com

Show all headers | View raw


workbook   = WriteExcel.new("images.xls")
worksheet4 = workbook.add_worksheet('Image 1')
worksheet4.write('A10', "Image inserted over scaled rows and columns.")
worksheet4.insert_image('A1',
  File.join(File.dirname(File.expand_path(__FILE__)), '24bit.bmp')
)
workbook.close

while running above file I am getting following error :

".bmp isn't a 24bit true color bitmap. "

Used this to convert into true color bitmap

convert alarm.bmp -type truecolor 24bit.bmp

Help.

Back to comp.lang.ruby | Previous | Next | Find similar


Thread

Writeexcel gem - bitmap image is not  writing into the spreadsheet sathish.thandavan@gmail.com - 2014-11-17 02:19 -0800

csiph-web