<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: parsing excel files in ruby &#8211; the parseexcel gem</title>
	<atom:link href="http://www.rubyrescue.com/blog/2007/11/28/parsing-excel-files-in-ruby-the-parseexcel-gem/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rubyrescue.com/blog/2007/11/28/parsing-excel-files-in-ruby-the-parseexcel-gem/</link>
	<description>begin..rescue..end</description>
	<lastBuildDate>Thu, 22 Jul 2010 18:33:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Chris</title>
		<link>http://www.rubyrescue.com/blog/2007/11/28/parsing-excel-files-in-ruby-the-parseexcel-gem/comment-page-1/#comment-934</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 12 Apr 2010 18:34:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrescue.com/blog/?p=6#comment-934</guid>
		<description>updated to exclude nil rows and cells

wb = Spreadsheet::ParseExcel.parse(file)
rows = wb.worksheet(0).map() {&#124;r&#124; r unless r.nil?}.compact      
grid = rows.map() {&#124;r&#124; r.map() {&#124;c&#124; c.to_s(&#039;latin1&#039;) unless c.nil?}.compact rescue nil}</description>
		<content:encoded><![CDATA[<p>updated to exclude nil rows and cells</p>
<p>wb = Spreadsheet::ParseExcel.parse(file)<br />
rows = wb.worksheet(0).map() {|r| r unless r.nil?}.compact<br />
grid = rows.map() {|r| r.map() {|c| c.to_s(&#8216;latin1&#8242;) unless c.nil?}.compact rescue nil}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gruff</title>
		<link>http://www.rubyrescue.com/blog/2007/11/28/parsing-excel-files-in-ruby-the-parseexcel-gem/comment-page-1/#comment-907</link>
		<dc:creator>Gruff</dc:creator>
		<pubDate>Wed, 13 Jan 2010 17:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrescue.com/blog/?p=6#comment-907</guid>
		<description>Oh... one correction: Excel 2007 does let you save as Excel 5.0/95 ... so it&#039;s okay.</description>
		<content:encoded><![CDATA[<p>Oh&#8230; one correction: Excel 2007 does let you save as Excel 5.0/95 &#8230; so it&#8217;s okay.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gruff</title>
		<link>http://www.rubyrescue.com/blog/2007/11/28/parsing-excel-files-in-ruby-the-parseexcel-gem/comment-page-1/#comment-906</link>
		<dc:creator>Gruff</dc:creator>
		<pubDate>Wed, 13 Jan 2010 17:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrescue.com/blog/?p=6#comment-906</guid>
		<description>Thanks Larry, I was having the same problem with nil rows, but I saved as excel95 format and it solved the problem!

Gruff</description>
		<content:encoded><![CDATA[<p>Thanks Larry, I was having the same problem with nil rows, but I saved as excel95 format and it solved the problem!</p>
<p>Gruff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LarryK</title>
		<link>http://www.rubyrescue.com/blog/2007/11/28/parsing-excel-files-in-ruby-the-parseexcel-gem/comment-page-1/#comment-870</link>
		<dc:creator>LarryK</dc:creator>
		<pubDate>Fri, 16 Oct 2009 17:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrescue.com/blog/?p=6#comment-870</guid>
		<description>Unfortunately, the parseexcel gem does not seem to have been updated for a couple of years. (As of October, 2009.) And the latest version only reads Excel 95.

But Excel 2007 no longer offers the option of writing a file into Excel 95 format. So the you&#039;ll run into more and more copies of Excel that can&#039;t create an Excel file for this parser. Sigh...

Note, source git repo for the project is http://scm.ywesee.com/?p=parseexcel;a=summary</description>
		<content:encoded><![CDATA[<p>Unfortunately, the parseexcel gem does not seem to have been updated for a couple of years. (As of October, 2009.) And the latest version only reads Excel 95.</p>
<p>But Excel 2007 no longer offers the option of writing a file into Excel 95 format. So the you&#8217;ll run into more and more copies of Excel that can&#8217;t create an Excel file for this parser. Sigh&#8230;</p>
<p>Note, source git repo for the project is <a href="http://scm.ywesee.com/?p=parseexcel;a=summary" rel="nofollow">http://scm.ywesee.com/?p=parseexcel;a=summary</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sudhi</title>
		<link>http://www.rubyrescue.com/blog/2007/11/28/parsing-excel-files-in-ruby-the-parseexcel-gem/comment-page-1/#comment-863</link>
		<dc:creator>sudhi</dc:creator>
		<pubDate>Wed, 05 Aug 2009 06:21:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrescue.com/blog/?p=6#comment-863</guid>
		<description>Where is the gem? parseexcel</description>
		<content:encoded><![CDATA[<p>Where is the gem? parseexcel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nirvana</title>
		<link>http://www.rubyrescue.com/blog/2007/11/28/parsing-excel-files-in-ruby-the-parseexcel-gem/comment-page-1/#comment-797</link>
		<dc:creator>Nirvana</dc:creator>
		<pubDate>Mon, 11 May 2009 10:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrescue.com/blog/?p=6#comment-797</guid>
		<description>How to loop through the worksheets if there is more than one? An example will work best for me.</description>
		<content:encoded><![CDATA[<p>How to loop through the worksheets if there is more than one? An example will work best for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: naveen</title>
		<link>http://www.rubyrescue.com/blog/2007/11/28/parsing-excel-files-in-ruby-the-parseexcel-gem/comment-page-1/#comment-317</link>
		<dc:creator>naveen</dc:creator>
		<pubDate>Thu, 06 Nov 2008 09:17:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrescue.com/blog/?p=6#comment-317</guid>
		<description>hai can u guve the code to write the information of gmail into excel format</description>
		<content:encoded><![CDATA[<p>hai can u guve the code to write the information of gmail into excel format</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: naveen</title>
		<link>http://www.rubyrescue.com/blog/2007/11/28/parsing-excel-files-in-ruby-the-parseexcel-gem/comment-page-1/#comment-316</link>
		<dc:creator>naveen</dc:creator>
		<pubDate>Thu, 06 Nov 2008 08:45:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrescue.com/blog/?p=6#comment-316</guid>
		<description>HI can any get me the code in ruby ,where i need to write my gami ifo into excel sheet format</description>
		<content:encoded><![CDATA[<p>HI can any get me the code in ruby ,where i need to write my gami ifo into excel sheet format</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sri</title>
		<link>http://www.rubyrescue.com/blog/2007/11/28/parsing-excel-files-in-ruby-the-parseexcel-gem/comment-page-1/#comment-228</link>
		<dc:creator>Sri</dc:creator>
		<pubDate>Tue, 02 Sep 2008 20:48:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrescue.com/blog/?p=6#comment-228</guid>
		<description>BTW, above bug is filed int he bug tracking system. Try to go there from the project page:
http://rubyforge.org/projects/spreadsheet</description>
		<content:encoded><![CDATA[<p>BTW, above bug is filed int he bug tracking system. Try to go there from the project page:<br />
<a href="http://rubyforge.org/projects/spreadsheet" rel="nofollow">http://rubyforge.org/projects/spreadsheet</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sri</title>
		<link>http://www.rubyrescue.com/blog/2007/11/28/parsing-excel-files-in-ruby-the-parseexcel-gem/comment-page-1/#comment-227</link>
		<dc:creator>Sri</dc:creator>
		<pubDate>Tue, 02 Sep 2008 20:41:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyrescue.com/blog/?p=6#comment-227</guid>
		<description>I was able to make the Chad&#039;s example. Here is what I have in my file:
---------
require &quot;parseexcel&quot;

puts &quot;Hello World&quot;
wb = Spreadsheet::ParseExcel.parse(&quot;C:/Apps/AppsData/workspace/requestcentral/public/downloads/TravelReportUploadTemplate_Test.xls&quot;)
ws = wb.worksheet(0)
rows = ws.map() { &#124;r&#124; r }.compact
grid = rows.map() { &#124;r&#124; r.map() { &#124;c&#124; c.to_s(&#039;latin1&#039;)}.compact rescue nil }
grid.each do &#124;g&#124;
  p g
end

---------
The code is supposed to print all the rows to the console. It tries but it prints &#039;nil&#039; for most of the rows, even though it&#039;s not nil in the actual file.

Bottom line, this code is not ready guys like they mentioned at the source where Chad got it from (Chad gave the link to source in his comment).

I wish someone could make the basic stripping work.

-Sri</description>
		<content:encoded><![CDATA[<p>I was able to make the Chad&#8217;s example. Here is what I have in my file:<br />
&#8212;&#8212;&#8212;<br />
require &#8220;parseexcel&#8221;</p>
<p>puts &#8220;Hello World&#8221;<br />
wb = Spreadsheet::ParseExcel.parse(&#8220;C:/Apps/AppsData/workspace/requestcentral/public/downloads/TravelReportUploadTemplate_Test.xls&#8221;)<br />
ws = wb.worksheet(0)<br />
rows = ws.map() { |r| r }.compact<br />
grid = rows.map() { |r| r.map() { |c| c.to_s(&#8216;latin1&#8242;)}.compact rescue nil }<br />
grid.each do |g|<br />
  p g<br />
end</p>
<p>&#8212;&#8212;&#8212;<br />
The code is supposed to print all the rows to the console. It tries but it prints &#8216;nil&#8217; for most of the rows, even though it&#8217;s not nil in the actual file.</p>
<p>Bottom line, this code is not ready guys like they mentioned at the source where Chad got it from (Chad gave the link to source in his comment).</p>
<p>I wish someone could make the basic stripping work.</p>
<p>-Sri</p>
]]></content:encoded>
	</item>
</channel>
</rss>
