Hi all,
in some global method I have the following :
/**
* @properties={typeid:24,uuid:"356B5A2A-2FED-4A76-99CB-7D5316BAC33D"}
* @param {String} $pdfName
* @param {Array} $pdf
*/
function gen_pdf($pdfName, $pdf) {
var $fileName = plugins.file.createTempFile($pdfName, '.pdf');
plugins.file.writeFile($fileName,$pdf);
application.executeProgram('rundll32', 'url.dll,FileProtocolHandler', $fileName);
}
but on the line plugins.file.writeFile($fileName,$pdf); there is this warning,
The function writeFile(Object,Array<byte>,[?]) is not applicable for the arguments (JSFile,Array)
what's wrong with the method above, when I run this method the expected pdf is generated, I'm using Servoy 6.0.3
Regards,
Peter