|RTF formatting... [message #431747]
||Thu, 19 November 2009 06:19
Registered: June 2009
For RTF template formatting, there are many features available in MS word itself. For example inserting sysdate, pagebreak , page number ,border shading and text coloring etc..
But I would like know how to implement these features using XML Publisher itself instead of using MS Word features..
I need code or any document where I can find how to format RTF using XML Publisher features/functionalities for the following things:
Note: I am using MS Office Word 2003.
1- Insert Sysdate.
2- Insert Page break.
3- Insert page break based on conditions or for group of records. For example I want page break at requisition header level but not on line level. Means if there are 10 lines for a requisition then page break should occur for 11th row and for every new requisition number. requires page break for each requisition regardless how many lines are there for that requisition.
4- Insert page number.
I have tried with the code below but its not working for me.
5- Code to change color of text based on conditions.
I have used code as given below.. but that is very complex in case of text coloring required for separate/different columns.
-- table with text in color1--
<?end when?><?otherwise: ?>
-- table with text in color2--
<?end otherwise?><?end choose?>
Please let me know if anybody has worked or any idea regarding this....
[Updated on: Thu, 19 November 2009 06:23]
Report message to a moderator