How have a msword report test plan in landscape orientation?

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

How have a msword report test plan in landscape orientation?

Postby Julien » Thu May 06, 2010 3:13 pm

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

Postby Julien » Mon May 10, 2010 7:49 am

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>;'
Julien
TestLink user
 
Posts: 14
Joined: Tue Apr 13, 2010 7:38 am


Return to Installation and configuration



Who is online

Users browsing this forum: No registered users and 3 guests

cron