Export to PDF / Word
Hi,
Can anyone please provide a solution to export Harness data to PDF and word document?
Thanks
-
Like (0)
-
Accepted Solution
Hi All,
This issue has been resolved with the solution mentioned in below post. Thank you for the suggestions.
https://collaborate.pega.com/question/generating-and-viewing-pdf

Hi,
For exporting Harness data to PDF, you may use the HTMLToPDF activity.
Please give a try.
Thanks,
Susan

Hi Susan,
This was already tried. I added this activity in the action of Button passing the Harness name as parameter both in Stream Name and Mark up. It didn't work. Could you please provide more suggestions.

Thanks Asif. It is again the HTMLToPDF activity which accepts HTMLStream as input. It doesn't work if I pass the section name or harness name as value for HTMLStream parameter. Could you please suggest how to convert section/harness to the format accepted by HTMLToPDF activity.
Hi All,
I just tried using the activity 'pxCreatePDF' by replacing the 'pyAttachPDF' in it with 'pyViewPDF'. Name of the section and PDF file name are being passed as parameters. This time I am not getting any errors and I can see value as below in Parameter page each time I execute it. I am not sure what does that value refer to but PDF file is not getting generated still.
PDFDocument [B@814c69f
PDFDocument [B@2840452
PDFDocument [B@3388c9ca
Can anyone please help to troubleshoot.
Accepted Solution
Hi All,
This issue has been resolved with the solution mentioned in below post. Thank you for the suggestions.
https://collaborate.pega.com/question/generating-and-viewing-pdf