Sha256: 98637ce762c2df293d292cbd15e250f7544d2ea4164f326f61a45f6369b712d8

Contents?: true

Size: 369 Bytes

Versions: 9

Compression:

Stored size: 369 Bytes

Contents

require_relative '../lib/fast_excel'

workbook = FastExcel.open("example_image.xlsx", constant_memory: false)
worksheet = workbook.add_worksheet

img_options = Libxlsxwriter::ImageOptions.new
img_options[:x_offset] = 0
img_options[:y_offset] = 0

worksheet.insert_image_opt(3, 3, "examples/logo.png", img_options)

workbook.close
puts "Saved to file example_image.xlsx"

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
fast_excel-0.5.0 examples/example_image.rb
fast_excel-0.4.1 examples/example_image.rb
fast_excel-0.4.0 examples/example_image.rb
fast_excel-0.3.0 examples/example_image.rb
fast_excel-0.2.6 examples/example_image.rb
fast_excel-0.2.5 examples/example_image.rb
fast_excel-0.2.3 examples/example_image.rb
fast_excel-0.2.2 examples/example_image.rb
kmadej_fast_excel_fork-0.2.2 examples/example_image.rb