Hello Susan and cgi group.


On Tue, Jul 17, 2001 at 10:57:35AM -0700, Susan wrote:

> Does anyone know of a cgi or perl script that will work for taking the information 
>from an online form, inputting the data onto a form on a word doc and then having 
>that word doc form emailed to the email address?  I know this can be done though I 
>can not quite work myself through this one. Thanks for any info...


I am working on something to do this as my company insists on having documentation
submitted in .doc format. I would much prefer to use .html and so should you if
at all possible.  In particular they make me submit Service-Requests in .doc which
is _very_ annoying as it means firing up StarOffice just to inform them that there
is _yet_ another IIS problem that needs fixing. :)  At the moment I have a script
that can generate the appropriate .doc by prompting for the text for each field
and fill in the template doc.  I do not have a web-inteface on it yet but I'm
working on that.  I couldn't use any of the OLE modules as I only use Gnu/Linux
by choice :)  Enough chat, time for how it works;  Nothing clever really.  I just
used StarOffice once to place markers in each field, such as "abababababa...."
and then use s/// to replace the markers with the content you want.  You have
to be careful to maintain the same number of characters but you can pad with
spaces.  This isn't ideal as it doesn't allow you to edit a document other than
the prepared template but I might try and do something with storeing the offsets
and trying to combine that with some regex to be able to make a good guess at
where the data is.  I think it would be very difficult to change fonts or put
in more data than the template allowed unless you knew how .doc files work.

If there is any interest I will post the code to the group when I have a web-
interface otherwise I'd be flamed for not using CGI.pm :)  


On a related note;  Has any one made the OLE modules work under Gnu/Linux?  Would
it be possible to do something with WINE?  It would be very handy for work to be
able to get inside windows apps and files from my preferred environment.  Alternativly
has anyone tried anything like having a script running under NT with the OLE hooks
and communicating with a script under Un*x over a network connection?

Apologies for the long post.  I'm rambleing.

Regards all.

EbGb.
--
404 Not Found.
The requested sig://humourous.quote was not found on this server.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to