Printing to Word

The release related discussions, plans and questions.
Locked
jbrown2197
TestLink user
Posts: 6
Joined: Wed Jan 09, 2008 9:51 pm

Printing to Word

Post by jbrown2197 »

I would like to create some space between my test cases when I print a test plan to word. What needs to be modified to make this happen?
Thanks
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

Modify CSS file <testink_root>/gui/css/*
You must add/increase margin property of the table, that include particular TestCases.
jbermejo
TestLink user
Posts: 3
Joined: Wed Feb 13, 2008 9:37 am

Adding spaces between test cases in word documents

Post by jbermejo »

I changed line 247 of the print.inc.php file
from:
$code .= "</table></div>";

to:
$code .= "</table></div><br />";


this adds an extra line after each test case is printed and it also fixes the tc table mis-alignment problem displayed when printing to ms-word documents.

I still need to figure out how to fix the toc not honoring the testsuite/testcases hirearchy structure when displayed in ms-word documents :-(
jbermejo
TestLink user
Posts: 3
Joined: Wed Feb 13, 2008 9:37 am

Post by jbermejo »

I've just found a workaround for printing the correct hirearchical structure of the "Table of Contents" in ms-word documents.

I've changed 'padding-left' to 'margin-left' on both renderTestSuiteNodeForPrinting (line 214) and renderTestCaseForPrinting functions (line 289) of the print.inc.php file

These changes didn't seem to break the "print to HTML" functionality.
Locked