changing page orientation and margins in XSLT

Thursday, March 27, 2014

I have a question about the XSLT. I have a report that will always be exported to MS Word. Can I set the page orientation to landscape and change the margins in the XSLT?
A quick search on the internet brought me to XSL-FO, but trying that myself resulted in epic fail of my report layout.
Playing around with page-width and page-height should help me out using xsl-fo. But putting this in the existing xslt seems not obvious.

does anybody have any suggestion? Is it supported in Spirateam?

thanks a lot!
2 Replies
Monday, March 31, 2014
re: FilipBaert Thursday, March 27, 2014
Hi Filip

Assuming that you are running SpiraTeam v4.1 or later, you can locate the underlying MS-Word 2007+ template at the following location:

C:\Program Files (x86)\SpiraTeam\Reports\MsWord2007.xml

Open that up in Notepad and you should see the various tags:

   <m:mathFont m:val="Cambria Math"/>
   <m:brkBin m:val="before"/>
   <m:brkBinSub m:val="&#45;-"/>
   <m:smallFrac m:val="off"/>
   <m:lMargin m:val="0"/>
   <m:rMargin m:val="0"/>
   <m:defJc m:val="centerGroup"/>
   <m:wrapIndent m:val="1440"/>
   <m:intLim m:val="subSup"/>
   <m:naryLim m:val="undOvr"/>

That is where you can customize the initial view

Tuesday, April 1, 2014
re: inflectra.jimx Monday, March 31, 2014
thx for the suggestion. This will affect all generated word report than? That may be a bit too drastic.

Is i than possible to have multiple word templates located on the server?

is it possible to only do this for 1 template?

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885


  • Started: Thursday, March 27, 2014
  • Last Reply: Tuesday, April 1, 2014
  • Replies: 2
  • Views: 3937