> Are there any module for creating a doc file under linux poatform.
What is a "doc file"?
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
> liveupto <liveup...@gmail.com> wrote:
>
>> Are there any module for creating a doc file under linux poatform.
>
> What is a "doc file"?
It seems reasonable to assume a .doc, i.e. MS Word file, IMHO. Which
makes it a fair question; the only modules I could find were in the Win32
name space, and used OLE to "drive" a copy of Word. That's not doable
on Linux.
If the OP's Perl app is to run on Linux, it'd probably be easier to use
RTF output. Word can read that, and on most PCs that have it installed
it will probably be the default editor for .rtf files, so end users will
see the Word icon. IIRC, filename extensions are hidden by default on
Windows, so most users won't even notice a difference.
sherm--
True, but that format has changed a dozen times over the years. So which
one is he talking about?
Which also begs the question why to OP wants to create a DOC file
instead of DOCX format in the first place, considering that DOCX has
been around for a few years by now and also is an open format with a
published spec while AFAIK all DOC formats are unpublished and only
accessible via reverse engineering.
[...]
>If the OP's Perl app is to run on Linux, it'd probably be easier to use
>RTF output. Word can read that, and on most PCs that have it installed
>it will probably be the default editor for .rtf files, so end users will
>see the Word icon. IIRC, filename extensions are hidden by default on
>Windows, so most users won't even notice a difference.
Depends upon what the OP wants to do with that file and what the users
are supposed to do with that file. RTF is significantly poorer, so it
might not be sufficient for e.g. templates for editing.
What really surprises me is that apparently there are no DOCX-related
modules on CPAN, although as I mentioned it is an open format. So maybe
your advise with RTF is the best after all.
Or HTML or PDF, depending upon the purpose of those files.
jue
If you save a RTF file with a .doc extension, Word will figure it out.
Unfortunately, RTF::Writer is only a little bit more helpful than printf
for creating RTF files.
There's interface on OO.org too. Hopefully, that could make such
perverncies.
> If the OP's Perl app is to run on Linux, it'd probably be easier to use
> RTF output. Word can read that, and on most PCs that have it installed
> it will probably be the default editor for .rtf files, so end users will
> see the Word icon. IIRC, filename extensions are hidden by default on
> Windows, so most users won't even notice a difference.
A trick off LaTeX world: convert F<.tex> file into F<.html> (that's
doable to some degree and I haven't any success with that aproach
either); then rename F<.html> to F<.doc> -- guys of GUI world won't see
any difference. (Just skip exporting F<.tex> into F<.html>; write
F<.html> from the begining.)
--
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom
Thank you all very much! thank you !