Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - WEB page and Formated Document

 
Thread Tools Search this Thread
Old 11-03-2004, 06:05 PM   #1
Default WEB page and Formated Document


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.




Steven Tisseyre
  Reply With Quote
Old 11-03-2004, 07:53 PM   #2
Mitja
 
Posts: n/a
Default Re: WEB page and Formated Document

On Wed, 03 Nov 2004 18:05:17 GMT, 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. 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
  Reply With Quote
Old 11-03-2004, 07:58 PM   #3
David Dorward
 
Posts: n/a
Default Re: WEB page and Formated Document

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-Document-0.64/Document.pm>, PDF
<http://search.cpan.org/~autrijus/PDF-Template-PDFAPI2-0.40_09/lib/PDF/Template.pm>
or even plain old HTML
<http://search.cpan.org/~mjd/Text-Template-1.44/lib/Text/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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump