Skip Navigation LinksHome Page > Forums > SpiraTeam Forums > Spira Custom Reports > Landscape section in cust...
Hello,
I'm creating a custom report (which will be exported in Word format), and want to make one section of the report (with a particularly wide table) in landscape orientation.
I can do a section break with the mso word formatting code, but this code for making the section Landscape doesn't work:
<style> @page LandscapeSection {mso-page-orientation:landscape;} div.LandscapeSection {page:LandscapeSection;} </style> <div class="LandscapeSection"> MY SECTION </div>
<style> @page LandscapeSection {mso-page-orientation:landscape;} div.LandscapeSection {page:LandscapeSection;} </style> <div class="LandscapeSection">
MY SECTION
</div>
Is this supposed to work, am I doing something wrong, or can this be achieved some other way?
Help would be appreciated.
Hi DL
You need to edit the source template that is being used:
C:\Program Files (x86)\SpiraPlan\Reports\MsWord2007.xml
and change it in there.
RegardsDavid
Hey David,
Cheers for the response. However, this would only work if my entire document needs to be landscape. For a single section, it should be included in a specific template.Now the solution here below turns out to work, I just needed to add a number of properties to the Landscapesection, other then mso-page-orientation (like size, margings, etc.) If you do that, it works like a charm.
David,
Is the source Template file available in SpiraTest? Or, do I need SpiraTeam or SpiraPlan to have access to the Source Template(s)?
Thanks,Mike
And if you have any questions, please email or call us at +1 (202) 558-6885