Displaying 3 results from an estimated 3 matches for "add_format".
Did you mean:
dd_format
2005 Oct 17
4
How to send excel file to browser (spreadsheat 0.3.2)
...'no-cache, must-revalidate''
end
send_data gen_excel, :filename => "timesheets.xls", :type =>
"application/vnd.ms-excel"
end
def gen_excel
wb = Excel.new("test/timesheets.xls")
version = Excel::VERSION
# Preferred way to add a format
f1 = wb.add_format(:color=>"black",:bold=>1,:italic=>true)
f2 = wb.add_format(:color=>"black")
f4 = Format.new(:num_format => "d mmm yyyy")
f5 = Format.new(:num_format => 0x0f)
wb.add_format(f4)
wb.add_format(f5)
ws1 = wb.add_worksheet("timesheets")...
2010 Dec 04
0
Problem while export to xls using spreadsheet gem in rails for Server
Hi All,
In my code
@format_text = @workbook.add_format(:bold =>false)
I get following error
undefined method `font'' for {:bold =>false}:Hash in
gems/spreadsheet-0.6.4/lib/spreadsheet/excel/writer/workbook.rb:352
when i try to export data into the XLS i am using following gems
spreadsheet --version 0.6.4
spreadsheet-excel --version 0....
2007 Jan 17
12
Excel sheet generation
Hi,
Does anyone know of a package that will help with generation of
spreadsheets? (xls files, not csv)
Thanks,
Fredrik
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe