![]() |
|
|
|||||||
![]() |
HTML - WEB page and Formated Document |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
|
|
#3 |
|
Posts: n/a
|
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 |
|