pwork Posted September 10, 2009 Share Posted September 10, 2009 Hello,(unrelated)Thanks in advance for help :) Post Edited by pwork at 09/10/2009 21:06 Link to comment Share on other sites More sharing options...
pwork Posted September 10, 2009 Author Share Posted September 10, 2009 (unrelated) Post Edited by pwork at 09/10/2009 21:06 Link to comment Share on other sites More sharing options...
pwork Posted September 10, 2009 Author Share Posted September 10, 2009 Ok, solved : this is not a font export error.In the app I'm working on, fonts are located in many places, so that it can't be put in the classpath. In addition, the absolute path to the font can't be provided in the jrxml, for safety reasons.So, at design time, a relative path is set in the .jrxml, and then, the absolute path is set by the Java app in the corresponding style objects contained in the JasperPrint object of the main report.I made this "relative to absolute" operation for the main report only, after fill, and font couldn't be found on elements (text, graph, ..) contained in subreports : in main report, path was changed to absolute, but it remained relative in subreports.So I just forgot to do the same replacement after subreports compilation, before adding them to the main report-filling parameters map ;)Hope this monologue will help you to deal with fonts embedding. 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