Posted by Dave Smithz on 11/08/58 11:31
Thanks for the comments. I have been reading more and at first I thought the
RTF file generation would be perfect.
The reason why CSS is not suitable is because I need to generate these
reports into a format that is sent back to clients. They need them in a
particualr format and I could not really mess around with CSS trying to get
it write. Plus they want to be sent a file via email or hard copy so RTF or
PDF would be easier.
On reading up I thought RTF would be great because of the dynamic nature of
the required reports. I could create an RTF document template with a table
in it. Look how a new table row is created. And for each table row I want to
add to the report, just add the necessary RTF commands and fill it with
data.
However looking at an RTF document in raw text and working out how to add a
new table line with data does not seem stright forward. I do not really
fancy spending a lot of time learning about RTF.
I did try and save Word document in XML format. This might be easier to
figure out how to add new lines to a table and populate the table with
report data. I can assume my clients are using Word 2003 so they would be
able to read these document (worse case I could print them out as PDF before
sending).
I think I am going the right way about this but any other suggestions or
ways to make adding a line to the XML or RTF would be welcome.
Kind regards
Dave
Navigation:
[Reply to this message]
|