Hi all,
I have a custom template, and when I export it clicking on the PDF Export button I get what I want.
I need the server send this file to an email address after OnEdit action.
I've seen in a post I can modify the Export() function to get the file saved on server. I've done this, so when I press the export to PDF button, I get my file on my server.
But I can't find the way of saving it automatically after some event.
I see the "export to PDF" button, call a javascript funcion onclick=ew_Export(document.fvdf_kpiview,'vdf_kpiview.php?export=pdf&id=1&custom=1','pdf',true);
I've tried to call from php with no success.
Then I've tried to call the export function before Page_Terminate() event, like this:
$vdf_kpi_view->Export = "pdf";
$vdf_kpi_view->ExportData();
I get the file saved on my server, but no the custom template.
How could I do this?
Thanks in advance