about doc module

PERL

about doc module

Postby liveupto » Sun, 11 Oct 2009 15:16:41 GMT

hi all,
   Are there any module for creating a doc file under linux poatform.
   thanks very much!

Re: about doc module

Postby Tad J McClellan » Sun, 11 Oct 2009 23:42:20 GMT





What is a "doc file"?


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"

Re: about doc module

Postby Sherm Pendley » Mon, 12 Oct 2009 00:46:23 GMT

Tad J McClellan < XXXX@XXXXX.COM > writes:




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

Re: about doc module

Postby Jgen Exner » Mon, 12 Oct 2009 01:41:16 GMT




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


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 

Re: about doc module

Postby David Harmon » Mon, 12 Oct 2009 11:49:13 GMT

On Sat, 10 Oct 2009 11:46:23 -0400 in comp.lang.perl.modules, Sherm
Pendley < XXXX@XXXXX.COM > wrote,

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.

Re: about doc module

Postby Eric Pozharski » Mon, 12 Oct 2009 19:28:42 GMT




There's interface on OO.org too.  Hopefully, that could make such
perverncies.


A trick off{*filter*}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

Re: about doc module

Postby liveupto » Tue, 13 Oct 2009 11:09:01 GMT






Thank you all very much! thank you !

Similar Threads:

1.Python doc problem example: gzip module (reprise)

2.OT: Python doc problem example: gzip module (reprise)

3.Python doc problems example: gzip module

4.hyperlink in Excel to Word doc closes Excel doc

Clicking hyperlink to a word document in my Excel workbook work only once. 
Every other time the excel document closes as the word document opens???

This is obviously annoying, because I want to go back and forth between my 
multiple documents

5.I want to put a hyperlink in a doc to another page in same doc

I want to put a hyperlink on a page in a power point presentation to another 
page in the same presentation.

6. Creating hyperlinks from word doc to pdf doc

7. Hyperlink from one Word doc to another Word Doc

8. Hyperlink from one doc to a specific spot in another doc



Return to PERL

 

Who is online

Users browsing this forum: No registered users and 58 guest