Thanks henk and Franco
I have been experimenting with the technique you guys describe and it looks quite promising. Just have to brush up on RTF now. > From: "henk" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Subject: RE: [Templates] Using TT to create word > docs. > Date: Sat, 31 Jan 2004 00:34:08 +0100 > > Hi Randall, > > I do it a lot, no problem > > - Create the document in Word as you would like it > to be > - Put in clearly visible placeholders for your data, > I use AAAA, BBBB, CCC > and so on > - Do a Save As... RTF format (some Word versions > offer 2 variants, choose > the MS RTF or something, it's not standard (of > course), but complete in > terms of Word specifics). > - Open the RTF document in Textpad or other ascii > editor > - Replace the placeholders with familiar [% %] tags, > plus loop and > conditional tags of course > - If possible avoid tables, use tabs instead. > - Avoid editing the template in Word! Word will ruin > your carefully entered > tags. > - The only way allowed to add tags in Word is with > Edit > Paste Special > > Paste As Text. > But stay with the ascii editor for starters > - Wear goggles and a helmet, as there's a lot of RTF > to weed through > - You may want to rename the extension into .doc > again (at the file level), > the doc will remain in RTF format but end users are > less likely to faint > > Use styles and define the default style to your > liking (in contrast to: > apply font and style changes repeatedly on multiple > paragraphs). Working > this way will give you document lighter on RTF tags. > > cheers > > ~henq > > > > > > > -----Original Message----- > > > > Message: 3 > > Date: Thu, 29 Jan 2004 13:26:27 -0800 (PST) > > From: Randall Marbach <[EMAIL PROTECTED]> > > To: TT <[EMAIL PROTECTED]> > > Subject: [Templates] Using TT to create word docs. > > > > 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. > > > .. > > > > What would be the best approach to this problem? > > > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ _______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
