List Info

Thread: How I can send OODoc to the user's Web browser.




How I can send OODoc to the user's Web browser.
user name
2006-06-20 21:54:28
This works in my cgi script:
<code>
==================================================
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`;
==================================================

</code>
If you are working on a windows system, you may need to set
up a file type.

To write a respons, access
http://ww
w.cpanforum.com/response_form/2516

To see the full thread, access
http://www.cpan
forum.com/threads/2514

--
You are getting this messages from www.cpanforum.com
To change your subscription information visit http://www.cpanforum.
com/mypan/

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )