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 08:25:55
My program on PHP now make reports into pdf, but it is
difficult to edit them. For me is necessary the possibility
to make reports into ODT format. Idea is simple. In
openoffice make template with 
the fields of the type name,date,information.  Server fills
data on sql query and sends the modified template to user.
User obtains the ODT file and by necessity make changes in
Open Office. Further prints out document on the printer.
<code>
#---------------------------------------------
use OpenOffice::OODoc;
 my $document = ooDocument(file =>
"MyFile.odt");
 $document->selectElementByContent("name",&q
uot;qwerty");
 print
"Content-type:application/vnd.oasis.opendocument.text/
odt\n";
 print "Content-disposition: inline;
name=myTEST.odt\n\n";
#???????????????
 $document->save("/dev/stdout");
#???????????? 
#
</code>
How I can send  $document to the user's Web browser.

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

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 )