How have a msword report test plan in landscape orientation?

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
Julien
TestLink user
Posts: 14
Joined: Tue Apr 13, 2010 7:38 am

How have a msword report test plan in landscape orientation?

Post by Julien »

Hi,

I use testlink 1.8.5

I have a test report in MS Word format.

I have changed print.inc.php so that a test case begin on a new page.

I have put this code at the end of the function renderTestSpecTreeForPrinting:

Code: Select all

	
$code .= "  <span><br clear=all style='page-break-before:always;'> </span>";
Now I want to have a word doc with a landscape orientation because the data (table) are too big for a Portrait orientation but I don't know how do that?

Have you an idea?

Thanks
Julien
TestLink user
Posts: 14
Joined: Tue Apr 13, 2010 7:38 am

Re: How have a msword report test plan in landscape orientat

Post by Julien »

Hi,

I can't have automaticly a report with a landscape orientation when I use Word but It's possible with Open office Writer.

If I put this line in the function renderHTMLHeader($title,$base_href) from print.inc.php I can have an Open Office document with a landscape orientation.

Code: Select all

$output .= '<style type="text/css" media="print"> @page { size: landscape;}  </style>;'
Post Reply