headerbar=[]
@data.each do |column|
data=[]
if @headers.include?('dataXX')
column.number
data << column.number
end
if @headers.include?('dataXX')
column.number
data << column.number
end
headerbar << data
end
pdf.table headerbar,
:width => 768,
:size => 11,
:border_style => :underline_header,
:headers => @header,
:header_color => 'b7e3fe',
:column_widths=>{0=>55,1=>100,2=>70,3=>77,4=>88,5=>90,6=>75,7=>75,8=>75,9=>65,10=>55,11=>55},
:padding=>5
Not fully rectified, but works.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.