Question
ING Bank
NL
Last activity: 15 Nov 2018 4:06 EST
Is there a way to export PageList contents to PDF in Pega 7.3
Hi Team,
I was able to export contents of a Page List to Excel. Now we have requirement that we need to export the same Page List contents to PDF and download it to our local. Is there a way to do that OOTB (other than CreatePDF smart shape)?
Thanks,
Vamsi.
***Updated by moderator: Lochan to add Categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
ING Bank
NL
Hi Mahesh,
pxCreatePDF is internally referencing HTMLToPDF. So I think invoking HTMLToPDF alone won't help in this case. I've created a new section with the same grid without pagination, removed action header etc. in the format I need and passed the section as argument to customized pxCreatePDF activity (commented AttachToWork and Invoked View PDF for download purpose). Now It is working fine.
Thanks,
Vamsi.
Pegasystems Inc.
IN
Hi Vamsi,
We can populate the List withing a section using Repeat Grid and then use HTMLtoPDF activity to export it as a PDF.
Thanks,
Ujjwal
ING Bank
NL
Hi Mahesh,
I've tried using pxCreatePDF with some minor changes like commenting out AttachToWorkObject and invoking View PDF activity for download. It worked, But when I have a grid with Pagination enabled, it is not helping.
Thanks,
Vamsi.
Pegasystems Inc.
US
So what issue are you facing with the grid data?
ING Bank
NL
When we export section containing Grid with Pagination to PDF. Only first page is exported.
Pegasystems Inc.
US
Looks like this activity is extracting data into the generated pdf which is visible in the section, did you tried the HTMLToPDF activity which my colleague had suggested above? If it is extracting the complete grid data into pdf then you can use that or you can look into that activity how they handled it.
Accepted Solution
ING Bank
NL
Hi Mahesh,
pxCreatePDF is internally referencing HTMLToPDF. So I think invoking HTMLToPDF alone won't help in this case. I've created a new section with the same grid without pagination, removed action header etc. in the format I need and passed the section as argument to customized pxCreatePDF activity (commented AttachToWork and Invoked View PDF for download purpose). Now It is working fine.
Thanks,
Vamsi.
Pegasystems Inc.
US
Good to hear that you have achieved your requirement with the customization of pxCreatePDF activity.
LTI
IN
Here I am attaching Word with screenshot it can help