Jump to content
We've recently updated our Privacy Statement, available here ×

how to get the names of temp virtual files


suryakantmandal

Recommended Posts

Is there any way to retrieve the names of temp virtual files being created using JRFileVirtualizer.

I can see the names of files(pages) in JasperPrint object but how to get JRPrintPage ->Stor -> Blocks- >uid(having file identifier)

Actually I want to perform force cleanup temp files once process has completed successfully in order to save the disc space.

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Jasper has configurations for virtualizer.

In the JRXML, you can include it as one of the properties.

<property name="net.sf.jasperreports.virtualizer.files.delete.on.exit" value="true"/>

I believe in Java, you should be able to call the cleanup() method. 

http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.virtualizer.files.delete.on.exit

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...