Ask a Question related to PERL Miscellaneous, Design and Development.
-
Josh #1
excel to csv
hi all
anybody knows a script to save an excel in csv?
i need it for a php script
tnx
Josh Guest
-
PDF to Excel
I have a financial report in PDF format that has many lists in columns with text and figures. I would like to export this to Excel or another... -
Place Excel into table with ability to link when native Excel file is updated.
Is it possible to place an Excel file into InDesign and create a link so that any changes made later to the Excel file can be updated in InDesign? ... -
Excel
I have MicrosoftXP,whenever I receive Excel 97 attachements I can view only through using an adaptor - is there any way I can not only see the... -
[PHP] PHP, Excel, jpgraph - can the graph be included in the Excel output?
You need a class that can create xls files with images. Or you can create a Web Archive: http://officeupdate.microsoft.com/office/webarchive.htm ... -
PHP, Excel, jpgraph - can the graph be included in the Excel output?
Good morning! I have several reports that are generated using PHP & MySQL for which I would like to include a graph using the excellent jpgraph... -
J. Gleixner #2
Re: excel to csv
Josh wrote:
Then why ask in a perl newsgroup? If you want a PHP answer, try a PHP> hi all
>
> anybody knows a script to save an excel in csv?
>
> i need it for a php script
newsgroup.
J. Gleixner Guest
-
Josh #3
Re: excel to csv
"J. Gleixner" <glex_nospam@qwest.net> ha scritto nel messaggio
news:mH60b.17$LC5.11341@news.uswest.net...i need a perl script to save an excel in csv> Josh wrote:> Then why ask in a perl newsgroup? If you want a PHP answer, try a PHP> > hi all
> >
> > anybody knows a script to save an excel in csv?
> >
> > i need it for a php script
> newsgroup.
Josh Guest
-
James Willmore #4
Re: excel to csv
On Mon, 18 Aug 2003 15:55:43 +0200
"Josh" <josh@nospam.pixael.com> wrote:If you need this for a PHP script, then wht not post to a PHP group?> anybody knows a script to save an excel in csv?
>
> i need it for a php script
Why are you mixing languages? This is an annoying pet peeve I have.
My suggestion is pick one and stick with it's functionality. I
believe this has been done successfully in both languages - pick one.
If you still have a burning desire or some company restriction that
requires you to write in Perl for this task, have a look at the
Spreadsheet::WriteExcel module. This should do what you're asking to
do.
HTH
Jim
James Willmore Guest
-
James Willmore #5
Re: excel to csv
On Mon, 18 Aug 2003 15:55:43 +0200
"Josh" <josh@nospam.pixael.com> wrote:If you need this for a PHP script, then wht not post to a PHP group?> anybody knows a script to save an excel in csv?
>
> i need it for a php script
Why are you mixing languages? This is an annoying pet peeve I have.
My suggestion is pick one and stick with it's functionality. I
believe this has been done successfully in both languages - pick one.
If you still have a burning desire or some company restriction that
requires you to write in Perl for this task, have a look at the
Spreadsheet::WriteExcel module. This should do what you're asking to
do.
HTH
Jim
James Willmore Guest
-
Eric J. Roode #6
Re: excel to csv
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
"Josh" <josh@nospam.pixael.com> wrote in news:bhr2b9$275ib$1@ID-
203386.news.uni-berlin.de:
Perhaps Visual Basic, or VBA, would be a better tool for doing this? Why> "J. Gleixner" <glex_nospam@qwest.net> ha scritto nel messaggio
> news:mH60b.17$LC5.11341@news.uswest.net...>>> Josh wrote:>> Then why ask in a perl newsgroup? If you want a PHP answer, try a PHP>> > hi all
>> >
>> > anybody knows a script to save an excel in csv?
>> >
>> > i need it for a php script
>> newsgroup.
> i need a perl script to save an excel in csv
>
>
do you have your heart set on Perl?
- --
Eric
$_ = reverse sort $ /. r , qw p ekca lre uJ reh
ts p , map $ _. $ " , qw e p h tona e and print
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBP0E9LmPeouIeTNHoEQKqRgCfanTcjHrwN0Slmef16m63YN 5TL/8An2II
jIJqdJCdyjJwzHp57FzMjcnq
=nRhz
-----END PGP SIGNATURE-----
Eric J. Roode Guest
-
Matt Garrish #7
Re: excel to csv
"James Willmore" <jwillmore@cyberia.com> wrote in message
news:20030818155210.749a5661.jwillmore@cyberia.com ...You're going in the wrong direction. The OP wants excel -> csv not csv ->>
> My suggestion is pick one and stick with it's functionality. I
> believe this has been done successfully in both languages - pick one.
>
> If you still have a burning desire or some company restriction that
> requires you to write in Perl for this task, have a look at the
> Spreadsheet::WriteExcel module. This should do what you're asking to
> do.
>
excel. The Spreadsheet::WriteExcel module won't help for the latter.
Assuming you're on a Windows machine and you have Excel installed, you might
be able to use the Win32::OLE module to open the file in Excel and then use
Excel itself to save the file to csv (from a simple macro:
ActiveWorkbook.SaveAs FileName:="C:\test.csv", FileFormat:=xlCSV).
Matt
Matt
Matt Garrish Guest
-
ctcgag@hotmail.com #8
Re: excel to csv
"Josh" <josh@nospam.pixael.com> wrote:
perldoc Spreadsheet::ParseExcel> hi all
>
> anybody knows a script to save an excel in csv?
gives a script on the first page that should be readily adaptable
to your need.
What difference does it make what script you need it for?>
> i need it for a php script
Xho
--
-------------------- [url]http://NewsReader.Com/[/url] --------------------
Usenet Newsgroup Service New Rate! $9.95/Month 50GB
ctcgag@hotmail.com Guest
-
James Willmore #9
Re: excel to csv
"Matt Garrish" <matthew.garrish@sympatico.ca> wrote in message news:<Sze0b.478$HB4.84432@news20.bellglobal.com>.. .
Spreadsheet::ParseExcel is what I meant :(> "James Willmore" <jwillmore@cyberia.com> wrote in message
> news:20030818155210.749a5661.jwillmore@cyberia.com ...>> >
> > My suggestion is pick one and stick with it's functionality. I
> > believe this has been done successfully in both languages - pick one.
> >
> > If you still have a burning desire or some company restriction that
> > requires you to write in Perl for this task, have a look at the
> > Spreadsheet::WriteExcel module. This should do what you're asking to
> > do.
> >
> You're going in the wrong direction. The OP wants excel -> csv not csv ->
> excel. The Spreadsheet::WriteExcel module won't help for the latter.
> Assuming you're on a Windows machine and you have Excel installed, you might
> be able to use the Win32::OLE module to open the file in Excel and then use
> Excel itself to save the file to csv (from a simple macro:
> ActiveWorkbook.SaveAs FileName:="C:\test.csv", FileFormat:=xlCSV).
I agree that, if on a WIN32 platform, Win32::OLE is more the way to go.
I just wanted to suggest a portable option.
Both should work fine.
Half asleep.
Jim
James Willmore Guest
-
Josh #10
Re: excel to csv
"Eric J. Roode" <REMOVEsdnCAPS@comcast.net> ha scritto nel messaggio
news:Xns93DBAC1EB2F10sdn.comcast@206.127.4.25...because this is like php> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> "Josh" <josh@nospam.pixael.com> wrote in news:bhr2b9$275ib$1@ID-
> 203386.news.uni-berlin.de:
>
>
> Perhaps Visual Basic, or VBA, would be a better tool for doing this? Why
> do you have your heart set on Perl?
Josh Guest
-
Josh #11
Re: excel to csv
"Matt Garrish" <matthew.garrish@sympatico.ca> ha scritto nel messaggio
news:Sze0b.478$HB4.84432@news20.bellglobal.com...might>
> "James Willmore" <jwillmore@cyberia.com> wrote in message
> news:20030818155210.749a5661.jwillmore@cyberia.com ...>> >
> > My suggestion is pick one and stick with it's functionality. I
> > believe this has been done successfully in both languages - pick one.
> >
> > If you still have a burning desire or some company restriction that
> > requires you to write in Perl for this task, have a look at the
> > Spreadsheet::WriteExcel module. This should do what you're asking to
> > do.
> >
> You're going in the wrong direction. The OP wants excel -> csv not csv ->
> excel. The Spreadsheet::WriteExcel module won't help for the latter.
> Assuming you're on a Windows machine and you have Excel installed, youuse> be able to use the Win32::OLE module to open the file in Excel and theni'm sorry... i'm working on a linux server> Excel itself to save the file to csv (from a simple macro:
> ActiveWorkbook.SaveAs FileName:="C:\test.csv", FileFormat:=xlCSV).
Josh Guest
-
Josh #12
Re: excel to csv
<ctcgag@hotmail.com> ha scritto nel messaggio
news:20030818220430.333$2N@newsreader.com...very good this is ok ;)> "Josh" <josh@nospam.pixael.com> wrote:>> > hi all
> >
> > anybody knows a script to save an excel in csv?
> perldoc Spreadsheet::ParseExcel
> gives a script on the first page that should be readily adaptable
> to your need.
in my php script i download the zipped excel from a server...>> >
> > i need it for a php script
> What difference does it make what script you need it for?
then i extract the excel and save it on the server... now i can't read the
excel... i need some tool that convert excel in csv
Josh Guest
-
Peter Hickman #13
Re: excel to csv
Josh wrote:
Staroffice perhaps?> "Matt Garrish" <matthew.garrish@sympatico.ca> ha scritto nel messaggio
> news:Sze0b.478$HB4.84432@news20.bellglobal.com...
>>>>"James Willmore" <jwillmore@cyberia.com> wrote in message
>>news:20030818155210.749a5661.jwillmore@cyberia.c om...
>>>>>>>My suggestion is pick one and stick with it's functionality. I
>>>believe this has been done successfully in both languages - pick one.
>>>
>>>If you still have a burning desire or some company restriction that
>>>requires you to write in Perl for this task, have a look at the
>>>Spreadsheet::WriteExcel module. This should do what you're asking to
>>>do.
>>>
>>You're going in the wrong direction. The OP wants excel -> csv not csv ->
>>excel. The Spreadsheet::WriteExcel module won't help for the latter.
>>Assuming you're on a Windows machine and you have Excel installed, you
> might
>>>>be able to use the Win32::OLE module to open the file in Excel and then
> use
>>>>Excel itself to save the file to csv (from a simple macro:
>>ActiveWorkbook.SaveAs FileName:="C:\test.csv", FileFormat:=xlCSV).
>
> i'm sorry... i'm working on a linux server
>
>
Peter Hickman Guest
-
Garry Short #14
Re: excel to csv
Josh wrote:
Josh,> hi all
>
> anybody knows a script to save an excel in csv?
>
> i need it for a php script
>
> tnx
*PLEASE* try reading the posting guidelines. It would have suggested (among
other things) doing a search on something like Google Groups ... if you
had, you'd have found the following thread:
[url]http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=Xns93B49CBD9408Easu1cornelledu%40132.236 .56.8&rnum=5&prev=/groups%3Fq%3Dexcel%2Bcsv%2Bgroup:comp.lang.perl.mi sc%26hl%3Den%26lr%3D%26ie%3DUTF-8%26as_drrb%3Db%26as_mind%3D12%26as_minm%3D5%26as_ miny%3D2003%26as_maxd%3D19%26as_maxm%3D8%26as_maxy %3D2003%26selm%3DXns93B49CBD9408Easu1cornelledu%25 40132.236.56.8%26rnum%3D5[/url]
where I provided a sample script to do just this for Sara.
Regards,
Garry
Garry Short Guest
-
Josh #15
Re: excel to csv
"Garry Short" <g4rry.sh0rt@zw4llet.com> ha scritto nel messaggio
news:3f41f025$0$46005$65c69314@mercury.nildram.net ...(among> Josh wrote:
>>> > hi all
> >
> > anybody knows a script to save an excel in csv?
> >
> > i need it for a php script
> >
> > tnx
> Josh,
>
> *PLEASE* try reading the posting guidelines. It would have suggested[url]http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=Xns93B49CBD9408Easu1cornelledu%40132.236 .56.8&rnum=5&prev=/groups%3Fq%3Dexcel%2Bcsv%2Bgroup:comp.lang.perl.mi sc%26hl%3Den%26lr%3D%26ie%3DUTF-8%26as_drrb%3Db%26as_mind%3D12%26as_minm%3D5%26as_ miny%3D2003%26as_maxd%3D19%26as_maxm%3D8%26as_maxy %3D2003%26selm%3DXns93B49CBD9408Easu1cornelledu%25 40132.236.56.8%26rnum%3D5[/url]> other things) doing a search on something like Google Groups ... if you
> had, you'd have found the following thread:
>
>tnx but unfortunately i'm working on a linux server...>
> where I provided a sample script to do just this for Sara.
Josh Guest
-
Josh #16
Re: excel to csv
"Eric J. Roode" <REMOVEsdnCAPS@comcast.net> ha scritto nel messaggio
news:Xns93DC3FCC1FEB1sdn.comcast@206.127.4.25...have> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> "Josh" <josh@nospam.pixael.com> wrote in
> news:bhsoj9$2pg60$1@ID-203386.news.uni-berlin.de:
>>> > in my php script i download the zipped excel from a server...
> > then i extract the excel and save it on the server... now i can't read
> > the excel... i need some tool that convert excel in csv
> Why don't you explain what you're trying to do, in some detail, right from
> the start, rather than doling out hints one at a time? Several peopleone-sentence> already posted useful suggestions, and to each one, you give aok... i need to parse an excel file that i downloaded automatically from a> response along the lines of "That won't work, because x."
>
> Explain your complete problem. Now. Or you're not going to get much more
> help from anyone.
remote server
i'm working on a linux server so i can't use some php's objects that run
only on windows systems
i can't use an odbc connection because my server don't support this
so i would convert this excel in a csv file to parse it with php... i can do
this calling a perl script (that convert a xls in csv) by my php script and
then parse the csv with php...
Josh Guest
-
Garry Short #17
Re: excel to csv
Josh wrote:
<SNIP>[url]http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=Xns93B49CBD9408Easu1cornelledu%40132.236 .56.8&rnum=5&prev=/groups%3Fq%3Dexcel%2Bcsv%2Bgroup:comp.lang.perl.mi sc%26hl%3Den%26lr%3D%26ie%3DUTF-8%26as_drrb%3Db%26as_mind%3D12%26as_minm%3D5%26as_ miny%3D2003%26as_maxd%3D19%26as_maxm%3D8%26as_maxy %3D2003%26selm%3DXns93B49CBD9408Easu1cornelledu%25 40132.236.56.8%26rnum%3D5[/url]> (among>> *PLEASE* try reading the posting guidelines. It would have suggested>>> other things) doing a search on something like Google Groups ... if you
>> had, you'd have found the following thread:
>>
>>So what? So am I.>>>
>> where I provided a sample script to do just this for Sara.
> tnx but unfortunately i'm working on a linux server...
This script was written on my laptop, which runs SuSE 8.1. One of the main
ideas behind Perl is that it's supposed to be *PORTABLE!*
In fact, I just went back and read the link I posted - it specifically says
I'm running Linux, and the OP specifically said in response that she was
running RedHat 8.
If you're going to ask for help, how about at least reading the information
you're pointed at?
Regards,
Garry
Garry Short Guest



Reply With Quote

