Displaying 20 results from an estimated 7000 matches similar to: "File created using Spreadsheet Excel can't read on linux"
2010 Jan 03
2
Problem with downloading a generated Excel sheet
Hello,
I''m using the spreadsheet/excel gem to generate an excel sheet that I
want user to be able to download it once it''s generated. Please take a
look on the below code:
@contacts=Contact.find(:all)
if @contacts.size>0
file="#{Date.today}_Report.xls"
workbook=Spreadsheet::Excel.new("#{RAILS_ROOT}/public/reports/#{file}")
2000 Dec 07
0
Re: Importing Excel .xls into R
One can import data from Excel ODBC source, but of course it is user's
responsibility to ensure that the data are consistent. Each worksheet in the
Excel workbook can be accessed as a table (for example, for Sheet1, you should
type "select * from [Sheet1$]". The worksheet should have first row containing
the column names, and the data rows should follow (the
2009 May 28
4
Read & name multiple excel sheets using RODBC
I'd like to be able to read multiple sheets from an excel workbook and use
the sheet name to name the resulting dataframe using RODBC. at the moment
i've figured out how to do it the long way (see below) but feel sure that
there is a speedier & possibly automatic way to do it in R. i've tried to
run a loop using sqlTables but it seemed to break the connection. unless
i've
2010 Mar 26
0
Reading a SpreadsheetML / XMLNS into R xmlns="urn:schemas-microsoft-com:office:spreadsheet
Hello,
I use a software that outputs the data in a form/dialect(?) of xml (I
think its called "SpreadsheetML", see below for an excerpt). It allows
(admittedly) easy import of such files into Excel. I would like,
however, to import it directly into R. I am familiar how to do that
with standard xml-files (mostly thanks to Duncan Temple Lang's help).
But I haven't found the right
2008 Sep 25
0
Problem reading excel sheets
> Hi,
>
> I am new to ruby on rails.I am having problem reading excel files. I
> tried using gem ''parseexcel'' but still the error is coming.
> Could you please help me with the code and how to use this gem? Is
> there any better way to read excel sheets.
>
> Snippet of Code:
>
> require ''rubygems''
> require_gem
2007 Jul 08
1
Writing Excel (.xls) files on non-Windows OSs using Perl
Hi all,
There have been quite a few threads in the recent months pertaining to
the ability to directly write native Excel (.xls) files from R. For
example, exporting R matrices and/or data frames to an Excel file, with
perhaps the ability to create multiple tabs (worksheets) within a single
file, with one tab/sheet per R object.
There exists the xlsReadWrite package on CRAN by Hans-Peter Suter,
2010 Sep 06
1
Help on write.xlsx library(xlsx)
Hi Adrian,
dat=data.frame(matrix(0,3,3))
write.xlsx(dat,"z:/dat.xlsx",sheetName="sheet1",append=F)
write.xlsx(dat,"z:/dat.xlsx",sheetName="sheet2",append=F)
The above code works and creates new worksheets. But if I want to append
to an existing worksheet I seem to get an error.
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
2011 Jun 14
3
Read in from multiple Excel wksheets
I?ve got an Excel workbook with about 30 worksheets. Each worksheet
has 10000 rows of data over 30 columns.
I?d like to read the data from each worksheet into a dataframe or
matrix in R for processing. Normally, I use read.csv when interacting
with Excel but I?d rather manipulate a multisheet workbook directly
than set about splitting the original workbook and saving down each
part as a csv.
2007 Jan 11
0
Functional tests with actions that send files
I have a number of actions that use the spreadsheet/excel library to
generate an Excel spreadsheet based on model data and send it to the
user using the send_file method.
For a while, I''ve been testing these methods with assert_response
:success, and then checking the response headers to make sure the file
at least looks like what I should be getting. But it occurred to me
recently that
2008 Aug 26
1
problem in reading the columns from an xls file
I am having a problem in reading the columns from an xls file.
Following is the code:
workbook = Spreadsheet::ParseExcel.parse(params[:dump][:file])
worksheet = workbook.worksheet(0)
skip=0
worksheet.each(skip) { |row|
puts row.at(0)
}
I am storing "Customer" in the first row first column. When I print, it
is received as
2013 Mar 05
0
Meaning of error message when exporting to MS Excel
Hi,
I?m attempting to export data (split into multiple files from one large
dataset) from R to excel using the excel.link package. The code for export
is as follows:
for(i in practicesNN){
#Create relevant data for input
#Separate out all parts of data ? PracticeName is removed from example
data for privacy reasons
detailedH<-dataExport2[dataExport1$PracticeName == i &
2011 May 13
0
Using spreadsheet gem with Oracle data
I have successfully used the spreadsheet gem to export data out of a
mysql database. I am now trying to do something similar using an Oracle
11g database configured for UTF-8 data. But I get the following error
on the
''workbook = Spreadsheet::Workbook.new'' line of code:
Iconv::InvalidEncoding in VisitLogsController#index
invalid encoding (''UTF-8,
2011 Aug 10
1
Reading XML files masquerading as XL files
R version 2.13.1
OS X (or Windows)
Colleagues,
I received a number of files with a .xls extension. These files open in XL and, by all appearances, are XL files. However, it appears to me that the files are actually XML:
> readLines(dir()[16])[1:10]
[1] "<?xml version=\"1.0\"?>"
[2] "<Workbook
2004 Feb 16
1
xls2csv.pl: Script to translate Excel files into CSV
I've created a Perl script that translates Microsoft Excel (.xls) files into
comma-delimited text files (.csv) using the Perl Spreadsheet::ParseExcel
module.
Usage
-----
perl xls2csv.pl <excel file> [<output file>] [<worksheet number>]
Translate the Microsoft Excel spreadsheet file contained in
<excel file> into comma separated value format (CSV) and store
in
2009 Sep 24
2
RODBC problem
Hi,
I'm attempting to use the RODBC package on Windows Vista to import an
excel spreadsheet. The spreadsheet has three worksheets the last of
which is blank. Following an example in Phil Spector's book (p. 34),
after creating a connection named con I did the following:
> con
RODBC Connection 3
Details:
case=nochange
DBQ=c:\temp\test.xls
DefaultDir=c:\temp
2007 Feb 08
5
xlsReadWrite Pro and embedding objects and files in Excel worksheets
Hans-Peter and other R developers,
How are you? Have you made any progess with embedding Url's in Excel?
Well, I have been busy thinking of more things for you to do;)
My colleagues in the lab are not R literate, and some are barely
computer literate, so I give them everything in Excel workbooks. I have
gradually evolved a system such that these workbooks have become
compendia of my
2010 Feb 23
2
Help on Spreadsheet::Excel
Dear all,
For the export to excel functionality i have used Spreadsheet::Excel gem
it works fine. i would like to design the excel sheet with html ,css.(i
want to give color and height and width to each cell of the excel
sheet...)
I have goggled for this but nothing saved me...
please u people suggest me any sample code or links that i can try
with...
Thank you for your time to view my query
2008 Apr 10
0
Synchronizing a table to a spreadsheet
Hello all,
As much as I hate saying this, I would like to maintain 2 copies of
some data, one copy in the form of a table in a database, and one in
the form of an Excel spreadsheet. Unfortunately, either or both
copies may be modified, so I need some way to synchronize the two,
much the same way as a contacts database might be synchronized between
a PDA and a desktop application.
I am curious to
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