Posted by Sanders Kaufman on 12/04/06 20:26
NC wrote:
> Justin wrote:
>> i found the solution to export file from mysql db into *.csv.
>> but is there anyway to convert the contents into *.doc and
>> save in my webserver and providing a link for the end users
>> to download the word file?
>
> Yes. You need a dedicated Windows server with Word installed
> on it. You would retrieve records from the database and convert
> them into Word documents by calling Word as a COM object.
Actually, it can be done *much* easier than that.
Just rename the .CSV file as to a .DOC extension.
When the Windows users dl it, it'll load up in Word... and it'll look
*good*.
You *might* have to specify the mime type on the page just to make
sure... but that's all.
[Back to original message]
|