I’ve find this problem with jasper plug in
I’m trying to make a jasper report of a my solution table
I’ve follow the istruction to make this operation with ireport 3.0 and it’s all ok
With servoy 4.0 I’ve implemeted this simple global method with this istruction
plugins.jasperPluginRMI.jasperReport(‘technica’, ‘c:\jasper_dir\first_report.jrxml’, ‘c:\out.pdf’, ‘pdf’, null)
where technica is my db , c:\jasper_dir\first_report.jrxml is the same jrxml that i use with ireport
when i call this method from my table form it return null and I see this error messages
[attachment=0]servoy_err.JPG[/attachment]
Thank you for your time!
waldner
I cannot reproduce the exact message box you have but try writing the paths using double backslashes like this:
‘c:\jasper_dir\first_report.jrxml’
‘c:\out.pdf’
Also, if you have Windows Vista it may be that you do not have sufficient permissions to write directly to C:
Try other destinations as well.
I’ve just tryed with \ but the error it’s the same (I work with win xp)
I think that I’ve a configuration problem but I don’t understand them
Are you on the latest version of the JasperReport plugin, downloaded from the Google Code site?
Is there any error in the log of Servoy?
Paul
thank you Paul
but the problem was very simple, with Servoy 4 (and servoy jasper plug in 2.1.1) I had set the variable reportDirectory
plugins.jasperPluginRMI.reportDirectory = ‘c:\programmi\jaspersoft\iReport-3.0.0\’
plugins.jasperPluginRMI.jasperReport(‘technica’, _form+‘.jrxml’, null, ‘view’, sql)
and after that all was ok
thank you very much
waldner