新手问题 使用 axlsx 打印 xls 的时候如何设置图片的样式?

small_fish__ · December 17, 2013 · Last by cckkll replied at July 30, 2015 · 3139 hits

不知道大家是否使用 axlsx 来生成一些比较复杂的 excel,例如包含图片和 charts 之类的,目前根据文档实现了的效果大概如下 如图所示:生成的图片没有在每一个 cell 里面居中,看过文档,没有发现对应的 options 说明,很纠结。 加入图片的代码大致如下的:

sheet.add_image(:image_src => img,  :start_at => "xx", :width => 100, :height => 100)

有使用过的朋友分享下相关经验,谢谢。。~~~~

同求解决方法

You need to Sign in before reply, if you don't have an account, please Sign up first.