Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

about doc module

0 views
Skip to first unread message

liveupto

unread,
Oct 10, 2009, 2:16:41 AM10/10/09
to
hi all,
Are there any module for creating a doc file under linux poatform.
thanks very much!

Tad J McClellan

unread,
Oct 10, 2009, 10:42:20 AM10/10/09
to
liveupto <liveup...@gmail.com> wrote:

> 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/"

Sherm Pendley

unread,
Oct 10, 2009, 11:46:23 AM10/10/09
to
Tad J McClellan <ta...@seesig.invalid> writes:

> 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--

J�rgen Exner

unread,
Oct 10, 2009, 12:41:16 PM10/10/09
to
Sherm Pendley <spam...@shermpendley.com> wrote:
>Tad J McClellan <ta...@seesig.invalid> writes:
>> 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;

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

David Harmon

unread,
Oct 10, 2009, 10:49:13 PM10/10/09
to
On Sat, 10 Oct 2009 11:46:23 -0400 in comp.lang.perl.modules, Sherm
Pendley <spam...@shermpendley.com> wrote,

>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.

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.

Eric Pozharski

unread,
Oct 11, 2009, 6:28:42 AM10/11/09
to
On 2009-10-10, Sherm Pendley <spam...@shermpendley.com> wrote:
> Tad J McClellan <ta...@seesig.invalid> writes:
>
>> 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.

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

liveupto

unread,
Oct 11, 2009, 10:09:01 PM10/11/09
to
On 10月11日, 下午6时28分, Eric Pozharski <why...@pozharski.name> wrote:

> On 2009-10-10, Sherm Pendley <spamt...@shermpendley.com> wrote:
>
> > Tad J McClellan <ta...@seesig.invalid> writes:
>

Thank you all very much! thank you !

0 new messages