Page 1 of 1

printable document from form

Posted: Mon Aug 21, 2006 1:01 pm
by bubs
does anyone know how I can take this script http://www.planet-source-code.com/vb/sc ... 8&lngWId=8 and use it to process a form? I look like it would be possible but I don't know how to add the variable from the form. I found this and would like to use it with the swift mailer to mail out as an attachment.

I don't know much about programing but am trying to learn while I work but It's not working out a well as I hoped. but this seems like it would be an easy task... I hope

Posted: Mon Aug 21, 2006 2:43 pm
by feyd
Although RTF is perfectly fine for many things, I may use PDF generation. Some libraries of interest for PDF generation are fpdf and ezpdf.

Either way is probably fine. You could even include both. -- What a concept! :D --. The article you linked is roughly a template variable injection function for existing RTF files and does include a facility to write it to a file. You should be able to adjust it to capture the output as a string or something without much difficulty. It does not actually generate the RTF file in itself however; instead it uses an existing one. There are other libraries for RTF available such as this which does a basic convertion from HTML to RTF.

cool

Posted: Mon Aug 21, 2006 3:16 pm
by bubs
thanks for the info

these should help out a lot