On Thu, 29 Jan 2004, Randall Marbach wrote:

> Hi All
> 
> I have a new job that requires me to to take data out
> of a database, process it and then put the results on
> the web and also into a Microsoft word document. 

As pointed, I would suggest using pdf documents where possible. 
I use a LaTeX template, fill in using TT fields (from forms and DB), and 
convert it to pdf (it may be done directly using TT).

It is possible to adapt it to word documents: write your word thing, using 
tt fields (in word: pay attention not to change formatting in the middle 
of the tt expr: 

Dear [%user%], 

you were supposed to pay $ [%amount%] for ...

(using formating where necessary).

Then save your text as an rtf file (which is a text file, somewhat similar 
to latex). Check that there is no tag broken by formatting. Add your TT 
entries (DBI connections, FOREACH loop), and use it as a template. 

I tried and it works for simple documents. 


 
-- 
Franco Bagnoli (franchino) <[EMAIL PROTECTED]> ([EMAIL PROTECTED])
virtual location: Dipartimento di Energetica "S. Stecco"
ultra-virtual affiliation: Centro Dinamiche Complesse (CSDC-Firenze)
real location: Dip. Matematica Applicata "G. Sansone", Universita' Firenze,
Via S. Marta, 3 I-50139 Firenze, Italy. Tel. +39 0554796422, fax: +39 055471787


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to