Jump to content

How to use Jaspersoft Studio built-in functions in stand alone application


rinse

Recommended Posts

Hi,

I would like to create a report with Jaspersoft Studio. We will deploy reports (*.jrxml) with our application. We will run the report using the jasperreport API from our application.

When we use a built-in function (e.g. WEEKDAY()) and run the report in our application there comes an error:

The method WEEKDAY(Date) is undefined for the type...

How can we use Jaspersoft Studio's built-in functions and run them using the jasperreport API?

Thanks,

Olaf

 

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Hi,
I suppose that in your application you already have the jasperreports jar. You will need the functions one. 
You can take it directly from the project sourceforge pages: http://sourceforge.net/projects/jasperreports/files/jasperreports/JasperReports%205.5.0/

Please consider that the other requirement is the joda-time-2.1 library.
Maybe you already have it in your application (its among JR library requirements), otherwise you should add it.

Best regards,
Massimo.

Link to comment
Share on other sites

Hi,

Thanks for your answer. I have got it working.

Now, I want to have a cutom function added. I tried to follow this page: http://community.jaspersoft.com/wiki/jaspersoft-studio-expression-editor-how-extend-it-and-contribute-your-own-functions-part-2 , but it is very out dated. I can't get through it. The annotations are not valid any more and I don't understand how the property file should look like. Also the package names does not exists any more.

Does any one have a working CustomFunction example?

Thanks.

Link to comment
Share on other sites

  • 6 months later...

Hi,

 

Before jasperreports 5.6.0 you could download a jar separately: jasperreports-functions-5.5.0.jar

I just updated to 5.6.0 and did not found a new version of the functions jar. I took jasperreports-functions-5.6.0-SNAPSHOT.jar from jaspersoft studio now. I don't know if it is the right way. but it works for me. Just add it to your buildpath

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...