From pll at lanminds.com Thu Nov 7 15:23:00 2002 From: pll at lanminds.com (pll@lanminds.com) Date: Mon Aug 2 21:33:07 2004 Subject: [Nh-pm] HTML/CGI.pm question Message-ID: <20021107212300.7108EF7D4@tater> Hey, Anyone know how to make those neat little pop-up windows in Netscape? I'm want to connect an href element to a new window which also contains a "close window" button. I've created a "phone list" cgi, and now I want to be able to click on an employee's name, pop up a new window, and have all their relevant information in it like ext, mgr, group, etc. (This is all done using CGI.pm, so if you know the actual perl code to do this, that would be cool too :) Thanks! -- Seeya, Paul -- It may look like I'm just sitting here doing nothing, but I'm really actively waiting for all my problems to go away. If you're not having fun, you're not doing it right! From fblack at docucorp.com Thu Nov 21 09:51:05 2002 From: fblack at docucorp.com (Black, Franklin) Date: Mon Aug 2 21:33:07 2004 Subject: [Nh-pm] Excel Message-ID: <60F043336182D3118E930050041891973D7345@BED1CN02> Does anyone know how to read an excel spreadsheet? From ben at blackavar.com Thu Nov 21 09:56:44 2002 From: ben at blackavar.com (Ben Boulanger) Date: Mon Aug 2 21:33:07 2004 Subject: [Nh-pm] Excel In-Reply-To: <60F043336182D3118E930050041891973D7345@BED1CN02> Message-ID: On Thu, 21 Nov 2002, Black, Franklin wrote: > Does anyone know how to read an excel spreadsheet? There's a great perl module that's helped me with this (and writing to them, for that matter) SpreadSheet::ParseExcel and SpreadSheet::WriteExcel http://www.cpan.org/authors/id/J/JM/JMCNAMARA/Spreadsheet-WriteExcel-0.39.tar.gz http://www.cpan.org/authors/id/K/KW/KWITKNR/Spreadsheet-ParseExcel-0.2602.tar.gz -- The more man meditates upon good thoughts, the better will be his world and the world at large. ~ Confucius From pll at lanminds.com Thu Nov 21 09:59:54 2002 From: pll at lanminds.com (Paul Lussier) Date: Mon Aug 2 21:33:07 2004 Subject: [Nh-pm] Excel In-Reply-To: Message from Ben Boulanger of "Thu, 21 Nov 2002 10:56:44 EST." References: Message-ID: <20021121155954.C678AF5CE@tater> In a message dated: Thu, 21 Nov 2002 10:56:44 EST Ben Boulanger said: >On Thu, 21 Nov 2002, Black, Franklin wrote: > >> Does anyone know how to read an excel spreadsheet? > >There's a great perl module that's helped me with this (and writing to >them, for that matter) > >SpreadSheet::ParseExcel >and >SpreadSheet::WriteExcel > >http://www.cpan.org/authors/id/J/JM/JMCNAMARA/Spreadsheet-WriteExcel-0.39.tar. >gz >http://www.cpan.org/authors/id/K/KW/KWITKNR/Spreadsheet-ParseExcel-0.2602.tar. >gz Outstanding! I had no idea these existed. Of course, I seldom think about excel, so I never had need to look. Could you provide some examples of things you've done with these modules? I'm curious about how I might use them (now that I know about them, I actually might have a need looking for a solution :) -- Seeya, Paul -- It may look like I'm just sitting here doing nothing, but I'm really actively waiting for all my problems to go away. If you're not having fun, you're not doing it right! From ben at blackavar.com Thu Nov 21 10:05:26 2002 From: ben at blackavar.com (Ben Boulanger) Date: Mon Aug 2 21:33:07 2004 Subject: [Nh-pm] Excel In-Reply-To: <20021121155954.C678AF5CE@tater> Message-ID: On Thu, 21 Nov 2002, Paul Lussier wrote: > Could you provide some examples of things you've done with these > modules? I'm curious about how I might use them (now that I know > about them, I actually might have a need looking for a solution :) Sure - in one case, someone was incredibly dead set on using a spreadsheet to track our IP space. I convinced him to store it on the server and then parsed it with a perl script to be displayed as a cgi. I had intentions to make the cgi interactive so that it would write back to the excel sheet, but never got around to it. In another case, I took ARIN's asn.txt file on a regular basis and translated that into an excel sheet for a different project. Mapping things out for management and showing what locations had the most places with more than one link.. that kind of thing. It can be pretty invaluable. -- Flies never visit an egg that has no crack. From ben at blackavar.com Thu Nov 21 10:11:00 2002 From: ben at blackavar.com (Ben Boulanger) Date: Mon Aug 2 21:33:07 2004 Subject: [Nh-pm] Excel In-Reply-To: Message-ID: Here's one example where I used it to translate PoP location information from an excel sheet to a cgi (I probably re-used example code, but it's been awhile, so don't quote me there): #!/usr/bin/perl -w use strict; use CGI ':standard'; use Spreadsheet::ParseExcel; my $oexcel = new Spreadsheet::ParseExcel; print header, "", "\n", "\n", "PoP Information\n", "\n"; #Begin Excel transformation my $obook = $oexcel->Parse('Colo Sites and Tracking/Site Tracker.xls'); my ($irows, $icols, $osheets, $ocells); $osheets = $obook->{Worksheet}[5]; print h2($osheets->{Name}); print "\n"; print ""; for ($irows = $osheets->{MinRow} ; defined $osheets->{MaxRow} && $irows <= $osheets->{MaxRow} ; $irows++) { print ""; for ($icols = $osheets->{MinCol} ; defined $osheets->{MaxCol} && $icols <= $osheets->{MaxCol} ; $icols++) { $ocells = $osheets->{Cells}[$irows][$icols]; print "\n"; } print "\n"; } print "
"; print $ocells->Value,"\n" if($ocells); print "
"; print end_html; -- The Only Consistent Feature Of All Of Your Dissatisfying Relationships Is You. From fblack at docucorp.com Thu Nov 21 10:50:21 2002 From: fblack at docucorp.com (Black, Franklin) Date: Mon Aug 2 21:33:07 2004 Subject: [Nh-pm] Excel Message-ID: <60F043336182D3118E930050041891973D7346@BED1CN02> Many thanks to all. Frank From erikprice at mac.com Thu Nov 21 21:56:25 2002 From: erikprice at mac.com (Erik Price) Date: Mon Aug 2 21:33:07 2004 Subject: [Nh-pm] Excel In-Reply-To: <20021121155954.C678AF5CE@tater> Message-ID: <5F21EB16-FDCE-11D6-9BC3-00039351FE6A@mac.com> On Thursday, November 21, 2002, at 10:59 AM, Paul Lussier wrote: > Outstanding! I had no idea these existed. Of course, I seldom think > about excel, so I never had need to look. > > Could you provide some examples of things you've done with these > modules? I'm curious about how I might use them (now that I know > about them, I actually might have a need looking for a solution :) Here's one example... My boss has a webapp that lets people make budget requests for their department, that I am working on. He wants a way to let people use a spreadsheet for bulk data entry rather than have to hand-enter every request via the browser. Originally I was going to use a server side Perl script to do this, using these classes. Erik -- Erik Price (zombies roam) email: erikprice@mac.com jabber: erikprice@jabber.org