johnf wrote: > On Friday 13 February 2009 09:34:06 am Paul McNett wrote: >> If your answers are "less than a page" and "no", then I'd say Dabo's >> reportwriter has a high likelihood of working for you. > > Yes these are single page templates. Any suggestion on what format the > template should be?
If it were me I'd give the user access to the report designer at runtime, to modify the .rfxml to position the pieces based on some boilerplate. Then give them a ui to edit the contents of the letter. Python offers templating built-in but all I've ever used is straight string formatting (which I don't recommend using for this). Example of that: letter = """ Dear %(client_name)s, Thanks for the recent payment on invoice %(invoice_num)s... """ Then when you go to run the report, you fill in the values in the dataset sent to the reportwriter first so that self.Record.letter for that record has the expanded letter. Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
