How to change/add Logo on ReportToPDFModule

Ask general questions here.
cliffae2020
Posts: 9
Joined: Fri Jul 16, 2021 3:38 am

How to change/add Logo on ReportToPDFModule

Post by cliffae2020 » Tue Sep 27, 2022 3:53 am

Hello,

I wanted to include a logo when generating PDF report using ReportToPDFModule.
I already create a custom template via Test Suite properties > Report > Report template.
The logo has been added successfully when the report is generated, but when I add the ReportToPDFModule the logo is not included.

I wanted to ask where do I add the logo in the ReportToPDFModule?
Is there a custom ccs or xml I can modify so that the logo is included?

IvanF
Posts: 151
Joined: Thu Aug 11, 2022 8:55 pm

Re: How to change/add Logo on ReportToPDFModule

Post by IvanF » Wed Sep 28, 2022 8:00 pm

Hi, you will need to leverage one of the 5 unbound variables of the ReportToPDF helper, specifically "Xml". As described in more details here, you will need to provide the location of the XML stylesheet.

Since you have already created a custom template, you can point the module to the file from that repository (the file with .xsl extension) . The modifications of that stylesheet should also enable the logo movement to the left that you mentioned in another topic, but feel free to post here if it doesn't work still.

cliffae2020
Posts: 9
Joined: Fri Jul 16, 2021 3:38 am

Re: How to change/add Logo on ReportToPDFModule

Post by cliffae2020 » Tue Oct 11, 2022 5:54 am

I just linked the location of the XML.
Than you so much