Script Error: “series”.exportToPDF is not a function
-----------------------------------------------
function getTable(a,b :array of string; c:array of integer):string;Javascript;
(*!
var series= new Array();
for(var i=0;i<a.length;i++)
{
series[i] = {VENDOR:a[i],DATE:b[i],Q:c[i]};
}
return series;
*)
----------------------------------------------------------------------------------------
function expor();['optimize=false','obfuscate=false']; Javascript;
(*!
series.exportToPDF();
*)
--------------------------------------------------
Procedure Form3.PDFClick(Event: TDOMEvent);
Begin
expor();
End;
---------------------------------------
datatable is working fine.but i cant able to export the value in pdf.do the needful