A logo in the Print report

The release 1.6 is going to be unsupported by Community. Because our effort moves ahead. However there are still valuable informations for you.
Locked
naima
TestLink user
Posts: 7
Joined: Thu Nov 23, 2006 10:08 pm

A logo in the Print report

Post by naima »

Hi all,

I would like to insert the company logo when generating the print document in word and in Html format. How can I do it?

Bonsoir à tous,

J'aimerais insérer le logo de l'entreprise lorsque j'imprime mon plan de test au format word et/ou Html. Comme le faire?

Thanks in advance for your help
Merci par avance pour votre aide.
TurboPT
Member of TestLink Community
Posts: 343
Joined: Sun Dec 10, 2006 4:51 am

Post by TurboPT »

This would be a two-part deal:

1. note in the file config.inc.php, there are 3 company-related defines:
a) TL_COMPANY
b) TL_DOC_COPYRIGHT
c) TL_DOC_CONFIDENT

you may want to add one here for the logo's path, i.e. TL_COMPANY_LOGO

2. Then in the file lib/functions/print.inc.php, function printFirstPage():
add code (a string concatenation) to variable $output with the proper html stuff to display the logo.

Then it should only be a matter of tweaking the html to place the logo where desired.
Locked