Displaying 20 results from an estimated 8000 matches similar to: "export to xls with utf-8 charset problem"
2006 Jun 28
4
How to export data
Hello
I would like to know if there is a webpage or something else (even
another thread in this forum) where there''s an explanation (preferably
simple and detailed)on how to export data from a rail application to a
.doc or a .xls. I have read Agile Web, Rails recipes and a few threads
in this forum but I don''t know how to do it.
Where is stored the model document ? How to
2005 Oct 17
4
How to send excel file to browser (spreadsheat 0.3.2)
hey, i want to generate an excel file and send it directly to the browser
(without storing it to the harddisk).
does anyone has any solution?
thanks in advance
this is my code:
--------------------
def export_excel
if @request.env[''HTTP_USER_AGENT''] =~ /msie/i
@headers[''Pragma''] = ''''
@headers[''Cache-Control''] =
2006 May 18
7
Server out to excel
How would one server out to excel a html table with the mime/content
type
application/vnd.ms-excel ?
In PHP it would be something like
?php
header("Content-Type: application/vnd.ms-excel");
------
But how do I do this in rails?
Cheers Glenn
--
Posted via http://www.ruby-forum.com/.
2006 Jul 29
9
export to a CSV or XLS file
hello everyone,
Any idea how can i export a resultset from a database to a CSV or XLS
file from the application ? would like the user to have the option to
export selected data to a CSV/XLS file.
Any plugins or libraries avaiable to accomplish this ?
Thanks for your time,
VASU.
--
Posted via http://www.ruby-forum.com/.
2006 May 18
3
How to change CSV properties.....
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 = StringIO.new
CSV::Writer.generate(report, '','') do |csv|
csv << [''Invoice History
2008 Feb 07
6
Buffer flushing
Short question: is there way to tell EM to actually send data after
send_data call?
I''m building a file transferring app. I send Mashal.dump''ed metadata
first, and then - the file contents (chunked). I found a silly bug:
receive_data() gets marshalled metadata and the first chunk of the
file in a single variable.
Like that:
c1.send_data("meta")
2006 Jan 11
6
Output non-HTML (CSV) from Rails
Hi,
I want to offer a CSV download of data in my Rails app (eg. An "Export
to Excel" link to grab the current view of tabulated data).
However, I can''t seem to break-out of the Rails framework to output this
non-HTML data. Even if I eliminate my layout template from my view, the
most basic view (no HTML) will still wrap the output in
2006 Jun 16
2
image_select_tag with name and value
What have I missed
I have a .rhtml with the sandard form parameters
<%= image_submit_tag("excel.gif", :alt => "Download List to Excel",
:border => 0, :name => ''render_action'', :value => ''excel'' ) %>
Which genenerates I believe a valid html fragment for a submit button.
<input alt="Download List to Excel"
2006 Aug 08
2
send_file problem
I''m attempting to use send_file to send an image file from
public/images. The file is world readable.
I keep getting the following error:
A ActionController::MissingFile occurred in account#current_logo:
Cannot read file public/images/logo.png
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/streaming.rb:55:in
`send_file''
I''ve tried supplying
2007 Oct 04
3
acts_as_tree - parent reference is outdated?
I''m experiencing some unexpected weirdness with acts_as_tree.
class Category < ActiveRecord::Base
acts_as_tree
has_many :variations
end
def variations
# some code that returns the parent category variations if we have
none
end
>> pc = Category.new
>> pc.variations << "foo"
>> pc.save
>> cc = Category.new
>> cc.parent = pc
>>
2006 Nov 03
6
How to send data,
Hello,
First of all I''m new to working with sockets,
so the problems I''m having are probably because of my lack of understanding.
What I''m trying to accomplish is to create a mac os x client gui to ruby-debug.
When a application that includes ruby-debug is started,
it starts listening for 2 connections; 8989, 8990
The connection is made by calling the connectToApp
2009 Mar 07
3
Download and Import xls files in R
Dear List,
I am trying to solve a problem: I have approximately 100 Excel
spreadsheets each with approximately 4 sheet each that I would like to
download and import in R for analysis.
Unfortunately i realized (i also sent an email to the author or
xlsReadWrite() ) that the read.xls() doesn't allow to import the file in
R from internet.
Here it is the the code:
2008 May 19
2
i want to export a data.frame to file.xls
in order to export a data.frame to sheet.xls i try:
write(df,file="file_name.xls")
but when i open it a message appears:
"impossible to oppen this file. her format is unvalid"
knowen that i work with excel_2007
what is the solution ?
--
View this message in context: http://www.nabble.com/i-want-to-export-a-data.frame-to-file.xls-tp17326119p17326119.html
Sent from the R
2008 Sep 17
1
xls export
how can i do xls export?plugin recquired?
--~--~---------~--~----~------------~-------~--~----~
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 from this group, send email to
2010 Apr 29
2
send_data => invalid byte sequence in US-ASCII
I''m trying to display a generated .png plot via send_data(), but it
results in a server error "invalid byte sequence in US-ASCII" error.
I''m pretty sure this means that I need to specify the encoding
somewhere, but I haven''t been able to figure out where or how to do so.
Some particulars:
I''m running gnuplot through a pipe to generate a plot in .png
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.3.5.1
My problem is when i use same code
2010 Feb 23
1
RODBC to import/export xls files
Dear R users,
I've learned today about RODBC package in order to import xls file to
dataframes and export the dataframes to xls files.
However I have some problems. Please excuse me if these are basic but as
I said, I've just begun with this package.
Also this email is quite long, but everything is related, so I don't
think it would be better to split it. Moreover, there's a
2008 Jan 06
5
Having very odd problems with UDP.
I am using eventmachine 0.8.1 on windows XP and am having very odd problems.
This snippet of code gives the error that follows it.
class EchoServer
def receive_data data
puts data
send_data ">>>you sent: #{data}"
if data =~ /quit/i
puts "quitting"
close_connection
EventMachine::stop_event_loop
end
end
end
2008 Jul 24
3
how to export ".xls" file with colorful cells?
Hi all:
I wanna know how to expoort ".xls" file. And in the exported ".xls" file, how to set different cells with different color?
Thanks a lot!
My best.
------------------------------
*******************************************
Xin Meng
Capitalbio Corporation
National Engineering Research Center
for Beijing Biochip Technology
BioPharma-informatics & Software
2006 Jan 09
6
Rendering dynamic Gruff image (send_data)
Dears,
Got a controller witch do a send_data for displaying a chart.
like :
send_data(g.to_blob, :filename => "any.png", :type => ''image/png'',
:disposition=> ''inline'')
I actually do a
<img src="http://myhost:3000/stats/make_graph" />
Is there any way more clean to do that ? At minima don''t hardcode the
beginning