goran.matisa Posted September 8, 2015 Posted September 8, 2015 Hi, I've noticed unpleasant side effect in design view after adding some padding into external style. More precisely, I have a report (jrxml) which includes external style template (jrxt). Style template contains a "master" style that defines default text attributes for report: <style name="pagDefault" isDefault="true" vTextAlign="Middle" fontName="Arial" fontSize="9"/> Template also contains some other style that all inherit "master" style: <style name="pagInteger" style="pagDefault" hTextAlign="Right"/> <style name="pagCurrency" style="pagDefault" hTextAlign="Right" pattern="#,##0.00"/> <style name="pagDate" style="pagDefault" pattern="dd.MM.yyyy" isBlankWhenNull="true"/> ... After I added some padding into "master" style (topPadding="1" leftPadding="2" bottomPadding="1" rightPadding="2") design view of the report become corrupted - elements become misaligned (incorrect dimensions and positions), obviously due to the wrong handling of padding in style template. Even worse is in table design view - there are some additional side effects like duplicated text, elements erratically change position after align/size operations. Report can't be compiled due to "There are compliation errors please fix the design.". At the same time, report executes just fine on the server, with all padding correctly in place. Known workaround is to remove padding from "master" style, and put it in all the remaing styles. My IDE: Eclipse Luna SR2 with Jaspersoft Studio feature 6.1.1.final With regards, Goran Report design view before: Report design view after: Table design view before: Table design view after:
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