> Is it possible to export some data to MSOffice format ( .doc and .xls ) ,
> OOffice ( .sxw and sxc ) or .rtf format with PHP

The answer is sort of..

To write Excel files, you can use the Spreadsheet Excel Writer package
available under the PEAR module. The module's site is at:
http://pear.php.net/package/Spreadsheet_Excel_Writer

The only RTF file generator for PHP that I know of is (appropriately) called
RTF Generator, but it costs around $50. The website is:
http://www.paggard.com/projects/rtf.generator/

Another commonly suggested method of creating RTF files with PHP, especially
if your file format is not likely to change much, is to create the document
in Word and format it as you like, using unique words as placeholders. Then
open the file with a text editor find the placeholder words, and use PHP to
substitute your data for the placeholder words.

Yet another work around is to create your documents in HTML but then name
them "filname.doc" When your users open the document, Word will launch and
auto-convert the file, giving your users the option to save it as a normal
Word document.

You can also use this tactic with Excel, creative CSV file easily in PHP,
and then serving them to your users as XLS files.

Good luck,

Al

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to