akhanh Posted October 29, 2007 Share Posted October 29, 2007 Hi all,i create an Image with ireport. Now i will change the height of the image. How i can do it? It has only the method setwidth(...). ThanksHA Link to comment Share on other sites More sharing options...
lucianc Posted October 29, 2007 Share Posted October 29, 2007 You cannot change the height of elements in a compiled report. You would need to load the report as a JasperDesign, change the element height and recompile the report. HTH,Lucian Link to comment Share on other sites More sharing options...
akhanh Posted October 29, 2007 Author Share Posted October 29, 2007 Hi, i load the report withJasperDesign jdesgn = JRXmlLoader.load("C:/Programme/JasperSoft/reports/graphTest.jrxml"); and will change the height of the detail band or an Image JRBaseImage, but i have no setheight(...) method. Have you an idea? Thanks HA Link to comment Share on other sites More sharing options...
akhanh Posted October 29, 2007 Author Share Posted October 29, 2007 Hi, i load the report withJasperDesign jdesgn = JRXmlLoader.load("C:/Programme/JasperSoft/reports/graphTest.jrxml"); and will change the height of the detail band or an Image JRBaseImage, but i have no setheight(...) method. Have you an idea? Thanks HA Link to comment Share on other sites More sharing options...
lucianc Posted October 29, 2007 Share Posted October 29, 2007 If you load a JasperDesign instance, you can cast images in the report to JRDesignImage, which includes a setHeight() method. HTH,Lucian Link to comment Share on other sites More sharing options...
akhanh Posted October 30, 2007 Author Share Posted October 30, 2007 Thank you very much. You saved me a lot of time...HA 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