changing page orientation and margins in XSLT

Thursday, March 27, 2014 10:32:00 AM

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 3:56:42 PM
re: FilipBaert on Thursday, March 27, 2014 10:32:00 AM
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 8:51:48 AM
re: inflectra.jimx on 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?
  • Started: Thursday, March 27, 2014 10:32:00 AM
  • Last Reply: Tuesday, April 1, 2014 8:51:48 AM
  • Replies: 2
  • Views: 1259