Sha256: e6a6c8d2e6f00c7619a8abb6fcb3fc4e1c1fc6b3140bc4aa9ea78cf256e780bf

Contents?: true

Size: 440 Bytes

Versions: 1

Compression:

Stored size: 440 Bytes

Contents

require 'axlsx'
package = Axlsx::Package.new
workbook = package.workbook

workbook.add_worksheet(:name => "Image with Hyperlink") do |sheet|
  img = File.expand_path('../image1.jpeg', __FILE__)
  sheet.add_image(:image_src => img, :noSelect => true, :noMove => true, :hyperlink=>"http://axlsx.blogspot.com") do |image|
    image.width=720
    image.height=666
    image.hyperlink.tooltip = "Labeled Link"
    image.start_at 2, 2
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axlsx-1.2.3 examples/sprk2012/images.rb