OpenOffice-OODoc - Re: How I can send OODoc to the user's Web browser.

Posted on Wed Jun 21 00:54:21 2006 by bob in response to 2514 (See the whole thread of 2)
Re: How I can send OODoc to the user's Web browser.
This works in my cgi script:
================================================== my $file="/tmp/a_document.$$.sxw"; my $content = ooDocument(file=> $file,create => 'text',readable_XML=>'on' ); # Add stuff # $content->save(); print "Content-type: application/vnd.oasis.opendocument.text\n\n"; print `cat $file`; ==================================================
If you are working on a windows system, you may need to set up a file type.
Write a response