shrije Posted August 23, 2010 Share Posted August 23, 2010 Cuurently i feel there is no way to vertically align image or text in a band. I have a detail band with dynamic records. I have to place an image on this band such that depending on the no of records the image appears vertically centered. Link to comment Share on other sites More sharing options...
Teodor Danciu Posted August 23, 2010 Share Posted August 23, 2010 Hi, The records need to be displayed using a subreport or a list component that runs side by side with the image, inside the same band.Then, make the image stretchType="RelativeToTallestObject", vAlign="Middle" and scaleImage="RetainShape".This way the image area will grow as big as the subreport or list component besides it, but depending on the scaling (RetainShape or Clip) it will not be deformed, but rather aligned at the Middle of this stretched area. Check the /demo/samples/subreport or /demo/samples/listcomponent samples provided with the JR project package. I hope this helps.Teodor 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