Skip to Content
0
Apr 19, 2018 at 03:55 AM

Export PDF -- Component exist in Compsoite

1201 Views Last edit Apr 20, 2018 at 01:27 AM 4 rev

Hi Experts,

I have created a Lumira document contains a composite. The composite consist of Chart with in the panel.

My requirement is to export lumira document to PDF.

EXPORT_PDF.exportView(); - Screen shot is working fine.

EXPORT_PDF.exportReport(); - is giving error message

Cannot export to PDF

No exportable content available. Contact your application designer.


No errors in following script:

g_components.push(P1_1.getChart());

g_components.push(P1_2.getChart());

g_components.push(P1_3.getChart());

EXPORT_PDF.setReportComponents(g_components);

EXPORT_PDF.exportReport();

here :P1_1, P1_2 and P1_3 are components type composite.

: g_components is the global array (variable) type Component.

In the composite I have defined a function module(getChart) to just return Chart.

Am I missing some thing?

Your inputs are highly appreciated.

Thanks,

Raju