Question
Wipro
NL
Last activity: 10 Sep 2018 9:52 EDT
Generate PDF automatically through Harness as a Input
Hi All,
Could you please let me know if there is any possible way to generate PDF automatically and store it in service export directory through harness as a Input.
I know there is couple of OOTB activity which we can use but they all are related to Section,HTML rule as an Input where as i need for harness.
if there is nay OOTB functionality, please do let me know.
Thanks in advance.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Evonsys
IN
Hi,
The OOTB activities either accept section or htmlstream as input, but still there is a way to pass harness as input.
In a non auto-generated section, include harness using below code.
<pega:include name="Testharness" type="Rule-HTML-Harness"/>
Wipro
NL
Hi guzzk,
i have tried this option and when i am doing it harness is opening as a new window not as PDF.
also harness will be not called in HTML rule, i am getting the error.
CollabPartnerz
IN
Below link might help you
Wipro
NL
Hi Raveendra,
Thanks for sharing the details.
but this option is for Section and not helpful in case of Harness.
actually harness has been created in older version of pega and upgrading the sections is not possible.
i am looking for options, to generate PDF from Harness.
Thanks again
CollabPartnerz
IN
can you try using Window.print().
Wipro
NL
hi Gayatri,
thanks for the details, actually i don't want to print the document.
i want to generate PDF from Harness directly.
CollabPartnerz
IN
okay , will check and revert back to you.
Vodafone
IN
Hello Gaurav,
My first question going through the long way of communication on PSC.
Are you able to generate PDF?
can you share your activity screenshots of how you are doing?
First will work on generating the PDF later we can work on saving the generated pdf in the service directory, Hope this make sense.