Ask a Question related to PHP Development, Design and Development.
-
El Bucanero #1
exporting to an excel sheet
Hey all,
I've created a MySQL database with lots of names, addresses and other
info in it and I'd like to write a little script that puts some selected
info in an excel file.
Anyone know how? Maybe there are some small programs I can buy?
Thanks,
Tim
El Bucanero Guest
-
Using cfform to update an Excel sheet
I am building a cfform to update a spread sheet, but am not sure how to indicate what column/row that the form field should update in the excel file.... -
How to get the name of an Excel sheet?
It's a COM call via CFObject but be warned - if there are External Links in the spreadsheet or VBA code, you could have issues. I'll post some code... -
Excel sheet creation from ASP
Hi. Simple ASP creates Excel file on C drive: Dim xls Set xls = CreateObject( "Excel.Application") xls.Workbooks.Add... -
Excel Sheet Export
Hi All, I have an Excel sheet which I recieve every week. Its not too much data and the present process is to manually load that data into a SQL... -
Export to Excel sheet
You may refer to this KB article: http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q288130 Luke (This posting is provided "AS IS",... -
Chris Hope #2
Re: exporting to an excel sheet
El Bucanero wrote:
Use the PEAR package:> I've created a MySQL database with lots of names, addresses and other
> info in it and I'd like to write a little script that puts some selected
> info in an excel file.
> Anyone know how? Maybe there are some small programs I can buy?
[url]http://pear.php.net/package-info.php?package=Spreadsheet_Excel_Writer[/url]
You can also just write the data out into an HTML file as a table and save
it with an .xls extension and Excel will open it as a spreadsheet. This
isn't the best way but it's a quick 'n dirty approach.
--
Chris Hope
The Electric Toolbox - [url]http://www.electrictoolbox.com/[/url]
Chris Hope Guest
-
El Bucanero #3
Re: exporting to an excel sheet
Quick n Dirty sounds good :)>
> Use the PEAR package:
> [url]http://pear.php.net/package-info.php?package=Spreadsheet_Excel_Writer[/url]
>
> You can also just write the data out into an HTML file as a table and save
> it with an .xls extension and Excel will open it as a spreadsheet. This
> isn't the best way but it's a quick 'n dirty approach.
>
it's just text, no calculations neccesary.
I can import this in excel and then save it as a proper file?
Thanks,
Tim
El Bucanero Guest
-
Colin McKinnon #4
Re: exporting to an excel sheet
El Bucanero spilled the following:
Proper file? Proper File? You mean a proprietary format that has a facility>>>
>> Use the PEAR package:
>> [url]http://pear.php.net/package-info.php?package=Spreadsheet_Excel_Writer[/url]
>>
>> You can also just write the data out into an HTML file as a table and
>> save it with an .xls extension and Excel will open it as a spreadsheet.
>> This isn't the best way but it's a quick 'n dirty approach.
>>
> Quick n Dirty sounds good :)
> it's just text, no calculations neccesary.
> I can import this in excel and then save it as a proper file?
>
for building in virus and trojans! Tread carefully El.
I was going to suggest that you skip PHP altogether and use MyODBC to import
the data directly to Excel. But I don't think I will now.
C.
Colin McKinnon Guest
-
Chris Hope #5
Re: exporting to an excel sheet
El Bucanero wrote:
Yeah it works. The only catch is if any of your cells have leading zeros>>> Use the PEAR package:
>> [url]http://pear.php.net/package-info.php?package=Spreadsheet_Excel_Writer[/url]
>>
>> You can also just write the data out into an HTML file as a table and
>> save it with an .xls extension and Excel will open it as a spreadsheet.
>> This isn't the best way but it's a quick 'n dirty approach.
>>
> Quick n Dirty sounds good :)
> it's just text, no calculations neccesary.
> I can import this in excel and then save it as a proper file?
they'll be removed when you open up the file. If they don't then this isn't
a problem.
IIRC you can even format the colour of cells using the bgcolor attributes of
the tr and td tags.
--
Chris Hope
The Electric Toolbox - [url]http://www.electrictoolbox.com/[/url]
Chris Hope Guest
-
Daniel Molina Wegener #6
Re: exporting to an excel sheet
On Tue, 15 Jun 2004 13:54:15 +0200
El Bucanero <american_discoPANTS@hotmail.com> wrote:
Hi...> Hey all,
Try the PEAR extension listed in [http]://pear.php.net> I've created a MySQL database with lots of names, addresses
> and other info in it and I'd like to write a little script
> that puts some selected info in an excel file.
Why to buy?> Anyone know how? Maybe there are some small programs I can
> buy?
Regards...> Thanks,
> Tim
--
Daniel Molina Wegener <dmw[@]unete.cl>
Developer | FreeBSD User
"Swift as the wind, Quiet as the forest,
Fierce as fire, Immovable as a mountain"
Daniel Molina Wegener Guest
-
eclipsboi #7
Re: exporting to an excel sheet
Alternatively to the other suggestions, you can easily use PHP to
export everything out into a Comma Seperated Values (CSV) format,
and then open it up in Excel. Tabs and spaces could also be used
as seperators, just remember to enclose your data in quotes, escaping
any quotes in the data with a backslash (\) so it doesn't get
interpreted as the end of a field.
On Tue, 15 Jun 2004 13:54:15 +0200, El Bucanero
<american_discoPANTS@hotmail.com> wrote:
>Hey all,
>
>I've created a MySQL database with lots of names, addresses and other
>info in it and I'd like to write a little script that puts some selected
>info in an excel file.
>Anyone know how? Maybe there are some small programs I can buy?
>
>Thanks,
>Timeclipsboi Guest
-
El Bucanero #8
Re: exporting to an excel sheet
Whoopdeedoo, it works.> Yeah it works. The only catch is if any of your cells have leading zeros
> they'll be removed when you open up the file. If they don't then this isn't
> a problem.
>
> IIRC you can even format the colour of cells using the bgcolor attributes of
> the tr and td tags.
>
Thanks all. Yes you too colin :P
T
El Bucanero Guest



Reply With Quote

