siaibiba Posted March 4, 2011 Share Posted March 4, 2011 Hi all I'm trying to print an image in may report, usaign Java code to do it. Here is de code:<image><imageExpression class=\"java.lang.String\"><![CDATA["+context.getRealPath("/estatico/images/listDocs.png")+"]]></imageExpression></image> The problem is that my report just prints the > symbol of the imageExpression tag. Anybody knows how to do it? Thanks in advice Link to comment Share on other sites More sharing options...
ernestoo Posted March 4, 2011 Share Posted March 4, 2011 Try this instead (drop <image> and path thing) <imageExpression class="java.lang.String"><![CDATA["/home/ernestoo/image.png"]]></imageExpression> Link to comment Share on other sites More sharing options...
siaibiba Posted March 24, 2011 Author Share Posted March 24, 2011 Hello ernestooThanks for your help. I have tested it but no success, any other idea? Thank you very much! Link to comment Share on other sites More sharing options...
abigailklinton Posted August 12, 2013 Share Posted August 12, 2013 If you have installed the valid Windows printer devices, following printing method can be applied to your application directly and efficiently.Public Print(int ImageID);[/code]y you can have a try 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