Page 1 of 1

H.C. and Jasper plugin for creating a pdf report.

PostPosted: Tue Mar 06, 2012 7:26 am
by adelo
I have a process in HC for creating a pdf report and save him in the temp folder of the server.

The problem is that the file isn't saved. If I create a tempfile work fine, so the permissions are correct.

The server running in Linux Debian 6.0, but in a Windows server work fine.

Any idea?

Thanks in advance.

Re: H.C. and Jasper plugin for creating a pdf report.

PostPosted: Mon Mar 12, 2012 11:45 am
by Manolo_Etec
To complement the post.

this process is launched in the HC:
Code: Select all

   _temp_file = plugins.file.createTempFile('NameTempFile', '.pdf')

   _athacthment = _temp_file.getParent() + '/Entity.pdf'

   _report = plugins.jasperPluginRMI.runReport(foundset, 'Entity.jrxml',  _athacthment , 'pdf', null, null)



It should create a file path '_temp_file' with the name 'Entity.pdf'

It work properly in Servoy 6.0.5 server with Java 6 (build 1.6.0_31-b05) ,windows 7

but not on a Debian Linux 6.0 with Servoy 6.0.4.

In linux creates the temporary file 'NameTempFile' properly and when launch 'plugins.jasperPluginRMI.runReport' doesn't create the file named 'Entity.pdf'

The temporary folder in linux is read and write permissions enabled.

Please anyone know what could be the problem?

Thanks in advanced

Re: H.C. and Jasper plugin for creating a pdf report.

PostPosted: Tue Mar 20, 2012 10:02 am
by jcompagner
what is exactly the output of:

_athacthment = _temp_file.getParent() + '/Entity.pdf'

because there you concat a string with a File object. Maybe something is not working there.

Re: H.C. and Jasper plugin for creating a pdf report.

PostPosted: Tue Mar 20, 2012 5:15 pm
by Manolo_Etec
Hi Johan
At the end, it was a stupid problem. :oops:

The report had a font, that the computer didn't had.

The problem was that the log file , hadnĀ“t anything about this error

Thanks