examples/example_image.rb in fast_excel-0.2.0 vs examples/example_image.rb in fast_excel-0.2.1
- old
+ new
@@ -1,12 +1,13 @@
-require_relative './lib/fast_excel'
+require_relative '../lib/fast_excel'
-workbook = FastExcel.open("ffi_example_image.xlsx", constant_memory: false)
+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, "libxlsxwriter/examples/logo.png", img_options)
workbook.close
+puts "Saved to file example_image.xlsx"
\ No newline at end of file