This content has been marked as final. Show 10 replies
You are probably going to have to use XSLFO to change the orientation by 180 degrees, using reference-orientation="180". I've not used it myself, but dig into it and let me know...
So, using MS Words feature to change orientation by 90 degrees, modify the generated XSL to say 180 degrees. Instead of using the RTF template, use the XSL template.
Worth a try...
Edited by: SIyer on Dec 1, 2009 4:46 PM
I tried this and it worked like a charm.
Here's the step by step.
1) Create an RTF template and select text direction to be vertical - upward or downward is not important.
2) From the BIP toolbar select Tools->Export->XSL-FO Style Sheet. Save stylesheet with an extension of XSL
3) Edit the XSL file, search for *"reference-orientation"*. Change the value to 180 - it will be 90 or 270 based on what you selected in step 1. Save the modified XSL
4) Create template in BIP Admin with a type of XSL-FO. Upload your XSL.
Step 5 is the MOST important one!
5) Make sure you give me points for this solution.
Thank you. I learned something new today!
6) For future changes to the template, use the RTF template as the base and repeat steps 2, 3 and 4. Step 5 need not be repeated.
Edited by: SIyer on Dec 1, 2009 9:08 PM
Edited by: SIyer on Dec 1, 2009 9:09 PM
I actually didn't get to that point yet because I was doing a "proof of concept" before the full layout of the report.
I created a table with 4 cells (I will make my report layout in this same format with a large table) and inserted 4 text form field objects holding my xml tags.
I then, in the xsl file, made these changes:
this way I could test all 4 directions of printing in my table. This looks like everything will work out fine.
This was my first time exporting the layout template as xsl-fo so thank you for the step-by-step instructions.
I just finished creating an xsl-xml file for another project so this was another great xsl thing to learn!
Thank you so much!
You're gonna love this!
Forget about exporting the XSL-FO. You can do this in RTF!
Add the following FO directive before the first element in the cell that you want to be upside down. You don't have to set your text to be vertical either.
*<xsl:attribute xdofo:ctx="block-container" name="reference-orientation">180</xsl:attribute>*