Forum: Ruby on Rails How to change CSV properties.....

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
venkat yejarla (Guest)
on 2006-05-18 08:35
(Received via mailing list)
Hello Good morning to all,

I am doing reports in ruby on rails,i am trying to export data throgh
excel in CSV format.Now i want to set the font to the text exported to
excel sheet.How can i set font..please help me regarding this ...

my sample code was like this...

report =
CSV::Writer.generate(report, ',') do |csv|
	csv << ['Invoice History List']
	csv << [nil,"#{((@start_date).to_s).gsub('-','/')}"]
	csv << [nil]

	:type => 'text/csv; charset=iso-8859-1; header=present;',
	:filename => 'invoicehistoryreport.csv', :disposition => 'attachment')

please help me regarding this issue...
This topic is locked and can not be replied to.