This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > HTML authoring > April 2005 > WEB page and Formated Document





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author WEB page and Formated Document
Steven Tisseyre

2005-04-04, 12:44 pm

Is there a way, that on a WEB page, once details are entered into a number
of text boxes, when you SUBMIT the page, it adds the text from these boxes
into a preformated word document or a document which is suitable for
printing. For example, enter some text inot boxes and then when you submit
the page it prints out the text but on page with other predefined text and
images tec.

Like whta you get when you do an on-line order and it shoes you a receipt
for printing.

Many thanks.

Steve.


Mitja

2005-04-04, 12:44 pm

On Wed, 03 Nov 2004 18:05:17 GMT, Steven Tisseyre <steven.tisseyre@ntlworld.com> wrote:

> Is there a way, that on a WEB page, once details are entered into a number
> of text boxes, when you SUBMIT the page, it adds the text from these boxes
> into a preformated word document or a document which is suitable for
> printing. Like whta you get when you do an on-line order and it shoes you a receipt
> for printing.

If they do it, it obviously is ;)

You'll need server-side scripting in any case. Then you can go to the trouble of creating for example a .rtf file (a bit like .doc, but much simpler; I beleive there are compilation proggies available), a .pdf file (e.g. make your script generate a LaTeX
file, then use latex2pdf) or something similar. The simplest way, though, is simply to create an html that prints nicely and instruct the user to use the printing functionality of his browser.

--
Mitja
David Dorward

2005-04-04, 12:44 pm

Steven Tisseyre wrote:

> Is there a way, that on a WEB page, once details are entered into a number
> of text boxes, when you SUBMIT the page, it adds the text from these boxes
> into a preformated word document or a document which is suitable for
> printing.


Yes, how you do that depends on the language you are writing your form
handler in.

I'd avoid Word though[1], you would be better off with RTF
<http://search.cpan.org/~rrwo/RTF-Do....64/Document.pm>, PDF
<http://search.cpan.org/~autrijus/PD...PDF/Template.pm>
or even plain old HTML
<http://search.cpan.org/~mjd/Text-Te...ext/Template.pm>.

[1] Not everyone has software that can read it and it carries the risk of
macro viruses.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews