Sometimes client requirement will be to print watermark in BI report based on some condition.
We can achieve this easily in a RTF template.
Follow the below steps to print the conditional watermark in pdf output of RTF template.
- Open Microsoft word
- Save the file as .rtf extension.
- Go to BI Publisher tab(BI Publisher should be already installed and Add-in should be present)
4. Load sample XML
6. Create a Xsl variable in the RTF
6. Now go to Design tab in MS word->Watermark->go to custom watermark
7. The printed watermark window appears
Here check "Text watermark"
8. Now under "Text watermark" leave everything as is(default) except the "Text".In the "Text" field
enter value as for eg <?$wMark?>
9. Save the template.
10. View the output for Payment flag as Y and N in XML one by one. The output will have different
watermark based on the Payment flag value we have set in the variable.
Payment flag as Y in xml.
Output:
Payment flag as N in xml.
Output:
No comments:
Post a Comment