Python scripting PDF reports - Customization example

Insert header and footer images


The header and footer images (for example the customer logo) are disabled by default.


PDF_CustomizedLogoDefault



Enabling default images from the E2 folder


Enable the Cenit default logos (Content of the E2 Installation)

 

Open the related language file (customized or automatically determined), e.g. report.de.lng.

Add or modify the item nologouse with value = False.

 

Recreate the report.

 

PDF_CustomizedLogoCenit



Enabling customer images from the E2 folder


Enable the customer images.

 

Open the related language file (customized or automatically determined), e.g. report.de.lng.

Add or modify the item nologouse with value = False.

 

Add the desired customer image (logo) into the E2 images folder.

 

Set the image names to the Python script with setHeaderLogo and / or setFooterLogo.

 

Recreate the report.

 

PDF_CustomizedLogoCustomer



Enabling customer images from the plugin folder


Enable the customer images from a plugin path.

 

Open the related language file (customized or automatically determined), e.g. report.de.lng.

Add or modify the item nologouse with value = False.

 

Add the desired customer image (logo) into the plugin images folder.

 

Set the image names to the Python script with setHeaderLogo and / or setFooterLogo.

Set the plugin folder in the Python script to pass to the command.

 

PDF_CustomizedLogoCustPlugIn


 

 


Previous
Page précédente
Chapter
Page principale du chapitre
Next
Page suivante