Skip Navigation LinksForums > SpiraTeam Forums > SpiraTeam Issues & Questi... > changing page orientation...

changing page orientation and margins in XSLT RSS Feed

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
Jim R.Jim R.
re: Filip Baert on Thursday, March 27, 2014
Monday, March 31, 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

Filip BaertFilip Baert
re: Jim R. on Monday, March 31, 2014
Tuesday, April 1, 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?
  • Started: 3/27/2014
  • Last Reply: 4/1/2014
  • Replies: 2
  • Views: 532
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.