Jump to content

Recommended Posts

Posted

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:


main_before_padding(1).png.9e936e95c129356ab80d9591bd1f9739.png


Report design view after:


main_after_padding(1).png.af308553bde58b52b8fe25d1815f2884.png


Table design view before:


table_before_padding(1).png.b71096b32965cbcfb2d3848ddf297ae3.png


Table design view after:


table_after_padding(1).png.aa87dce3f6ac98b666e514d16d592b3d.png


  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Posted Images

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...