<font size=2 face="sans-serif">I already have some rough code for Spreadsheet::WriteExcel.
I just need to figure out how to pass it the data. I created a new controller
just to do the Excel piece, I think I should be able to pass the same resultset
to the export routine as I do to the stash for the template code. Just
not sure of the logistics, but I need to do this for multiple pages. </font>
<br>
<br><font size=2 face="sans-serif">I'm thinking I can pass the same $rs
I place in the stash to the export function, have it stuff it into an excel
file and return a uri which I can redirect the browser to.</font>
<br>
<br><font size=2 face="sans-serif">Maybe.</font>
<br>
<br><tt><font size=2>Len Jaffe &lt;lenjaffe@jaffesystems.com&gt; wrote
on 07/02/2012 01:54:28 PM:<br>
<br>
&gt; From:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Len Jaffe &lt;lenjaffe@jaffesystems.com&gt;</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; To:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; The elegant MVC web framework &lt;catalyst@lists.scsys.co.uk&gt;</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Date:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; 07/02/2012 01:56 PM</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Subject:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Re: [Catalyst] Data export question</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; <br>
</font></tt>
<br><tt><font size=2>&gt; On Mon, Jul 2, 2012 at 1:45 PM, Kenneth S Mclane
&lt;ksmclane@us.ibm.com&gt; wrote:</font></tt>
<br><tt><font size=2>&gt; It will just be a dump of the current query results,
possibly a <br>
&gt; whole table, so It will need to create new tabs when they reach 65K
<br>
&gt; since most of my users are still on office 2003. I guess I could use<br>
&gt; Spreadsheet::WriteExcel, I just need to figure out the mechanics of
<br>
&gt; getting the data into the sheetand something to keep track of the
<br>
&gt; number of rows and create new tabs as needed. <br>
</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; # psuedocode&nbsp;</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; $ss = open_spreadsheet()</font></tt>
<br><tt><font size=2>&gt; $i = 0;</font></tt>
<br><tt><font size=2>&gt; $tab = undef;</font></tt>
<br><tt><font size=2>&gt; foreach $row (@rows) {</font></tt>
<br><tt><font size=2>&gt; &nbsp; if ($i % 65000 == 0) {</font></tt>
<br><tt><font size=2>&gt; &nbsp; &nbsp; $tab = $ss.new_tab()</font></tt>
<br><tt><font size=2>&gt; &nbsp; }</font></tt>
<br><tt><font size=2>&gt; &nbsp; add_to_spreadsheet($row, $tab)</font></tt>
<br><tt><font size=2>&gt; &nbsp; $i += 1</font></tt>
<br><tt><font size=2>&gt; }</font></tt>
<br><tt><font size=2>&gt; close_spreadsheet()</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; &nbsp;</font></tt>
<br><tt><font size=2>&gt; L.</font></tt>
<br><tt><font size=2>&gt; -- <br>
&gt; lenjaffe@jaffesystems.com&nbsp;&nbsp; 614-404-4214 &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;&nbsp;</font></tt><a href=www.volunteerable.net><tt><font size=2>www.volunteerable.net</font></tt></a>
<br><tt><font size=2>&gt; Proprietor: </font></tt><a href=http://www.theycomewithcheese.com/><tt><font size=2>http://www.theycomewithcheese.com/</font></tt></a><tt><font size=2>
- An Homage to Fromage</font></tt>
<br><tt><font size=2>&gt; Greenbar:&nbsp;Grubmaster:&nbsp;2012-2009, Grub
Asst: 2008, Trained: 2007.</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; _______________________________________________<br>
&gt; List: Catalyst@lists.scsys.co.uk<br>
&gt; Listinfo: </font></tt><a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst"><tt><font size=2>http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</font></tt></a><tt><font size=2><br>
&gt; Searchable archive: </font></tt><a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/"><tt><font size=2>http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</font></tt></a><tt><font size=2><br>
&gt; Dev site: </font></tt><a href=http://dev.catalyst.perl.org/><tt><font size=2>http://dev.catalyst.perl.org/</font></tt></a><tt><font size=2><br>
</font></tt>