Displaying 20 results from an estimated 10000 matches similar to: "problem in reading the columns from an xls file"
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
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
2010 Mar 22
0
WriteXLS - New Version 1.9.0
The updated package has been submitted to CRAN and has begun to propagate to CRAN mirrors.
Package: WriteXLS
Version: 1.9.0
Description: Cross-platform perl based R function to create Excel (XLS) files from one or more data frames. Each data frame will be written to a separate named worksheet in the Excel spreadsheet. The worksheet name will be the name of the data frame it contains or can be
2010 Mar 22
0
WriteXLS - New Version 1.9.0
The updated package has been submitted to CRAN and has begun to propagate to CRAN mirrors.
Package: WriteXLS
Version: 1.9.0
Description: Cross-platform perl based R function to create Excel (XLS) files from one or more data frames. Each data frame will be written to a separate named worksheet in the Excel spreadsheet. The worksheet name will be the name of the data frame it contains or can be
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
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}")
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
2009 Apr 07
0
File created using Spreadsheet Excel can't read on linux
Hi All,
Created xls file using spreadsheet Excel is not read on linux.
I am creating an xls file are as follows
workbook = Spreadsheet::Excel.new("Filepath")
worksheet = workbook.add_worksheet("Sheet1")
|
|
|
workbook.close
but when i am trying to download this it not get download.
--
Posted via http://www.ruby-forum.com/.
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 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 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
2009 Mar 12
0
FW: Re: Writing xls - multiple sheets
Jorge was kind enough to point out that I made a mistake in referencing
gabor's solution.
See below. Thanks Jorge.
-------- Begin forwarded message --------
Subject: Re: [R] Writing xls - multiple sheets
Date: 3/12/2009 6:03:13 PM
From: Jorge Ivan Velez
To: markleeds@verizon.net
Hi Mark,
Yes, he did (as always), but it is not what Ferry needed. Here is
Gabor's post:
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
2009 Aug 28
2
OT: .doc,.xls,.pdf,.ppt (etc.) string parser/indexers
Does anyone have experience with linux tools to parse the text from
common non-text file formats for searching? I'm trying to use the
kinosearch add-on for twiki which is fine as far as the search goes, but
it takes forever to generate the index. It uses xpdf to extract strings
from pdf's, antiword for .doc, and since it is perl, the
Spreadsheet::ParseExcel module for .xls. Some
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.
2012 Apr 20
1
odbcConnectExcel() fails to fetch all columns
Folks,
Is there a parameter somewhere in RODBC that enables more columns to be
retrieved from an Excel worksheet?
# This next bit uses an undocumented call in RODBC
z <- odbcConnectExcel("./BBaselinePtQaires_apr2011.xls")
BQ <- sqlFetch(z, "BBaselinePtQaires")
Gives me:
z RODBC[1]
And
BQ 134 obs. of 59 variables
I have all the rows in the worksheet but only the
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
2009 Mar 12
1
read.xls and name of worksheet
Hi,
I would like to some excel files with some worksheets. I tried this with
the following R script:
library(gdata)
i<-1
rc<-0
while(rc != "try-error") {
wksh<-try(read.xls("cluster-microarray-FW.xls",sheet=i,verbose=TRUE,perl="perl"))
rc<-class(wksh)
print(sprintf("------- i=%2d rc=%s ---------------",i,rc))
if (rc !=
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 &
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