somebody on daniweb recently did a thing with php/excel with COM. I think you need to be running IIS, but I may be wrong. Search the last 4 days for posts on this.
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
if only the data is important, the structure of the file constant,
mysql/php export the data as csv which excel can import and read as data
without fussing with .xls format
if the structure of the file is important, for calculated fields, a 'blank' .xls for download and then import the same comma separated values into it
If you need a lockdown .xls file try http://www.phpclasses.org/browse/package/3995.html
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
buddylee17
Practically a Master Poster
697 posts since Nov 2007
Reputation Points: 232
Solved Threads: 137
chrishea
Nearly a Posting Virtuoso
1,428 posts since Sep 2008
Reputation Points: 210
Solved Threads: 230
Hello Guys.
Thank you for replying back, what i need is 3 fields which are
Name
Age
Location
And when i fill this in, it stores the data to mysql database, which i know how to do,
But then i want to go to convertphptoexcel.php which then converts all the feilds and information to excel so i can download the file and open it so i can do mailmerge.
If its just for mail merge
output the query that gets the information as comma separated
/* select query for each selected row define file open file for writing*/ {
fput ($file,'/"'.$Name.'/",/"'.$Age'/",/"'.$Location'/"');
}
/* fclose rest of query set file for download*/
every mail merge can handle csv, an excel spreadsheet is unneccessary for the task,
like swatting a fly with an a-bomb
edit. do those "/" point the right way?
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376