suryakantmandal Posted August 9, 2018 Share Posted August 9, 2018 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 More sharing options...
reportdev Posted August 10, 2018 Share Posted August 10, 2018 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now