visert Posted March 5, 2011 Share Posted March 5, 2011 hii'm using style referenced into a report.Well... when I put a text field with a style...I don't understand why the font & dimension do not change according with style.If i put a "label" then work correctly. thank for your helpv Link to comment Share on other sites More sharing options...
szaharia Posted March 7, 2011 Share Posted March 7, 2011 Hi,Probably the referenced style belongs to a style template file. In this case, would be very helpful to post here both the jrxml sample and the style template file.Thanks,sanda Link to comment Share on other sites More sharing options...
visert Posted March 7, 2011 Author Share Posted March 7, 2011 Hi sandathank for u response... but the stile is the same for the two object: a label and a textfield. <textField pattern="" isBlankWhenNull="false"> <reportElement style="testo" mode="Transparent" x="0" y="0" width="162" height="13" forecolor="#000000" backcolor="#FFFFFF"/><textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none"><font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/></textElement><textFieldExpression class="java.lang.String"><![CDATA[$F{nome_assessore}]]></textFieldExpression></textField> but ... I think that applying style to textfield is not work properly.I set three VERY different style... and when I select one for a textfield in "design" view does'not change... if apply the same style to another textfield ... I see the change... to another ..no. I don't know if style are overwritten by other setting, but I assume that style have to overwrite ANY configuration... otherwise how can they help us? Thank for u helpbye (copy/paste format does not work...) Link to comment Share on other sites More sharing options...
szaharia Posted March 8, 2011 Share Posted March 8, 2011 Hi,That's because inside the <textElement /> element you set element's own font settings (in the <font fontName="SansSerif" size="10" ... /> tag), so all font settings in the 'testo' style are overriden by these font settings.Hope this helps,sanda Link to comment Share on other sites More sharing options...
visert Posted March 8, 2011 Author Share Posted March 8, 2011 but... It's impossbile in design view delete font dimension... I have to delete into XML code? Link to comment Share on other sites More sharing options...
Teodor Danciu Posted March 9, 2011 Share Posted March 9, 2011 Hi, Right-click the property in the Properties View and you'll see the "Restore Default Value" menu option.Please post further iReport questions on the iReport forum, as this one is JasperReports related. Thanks,Teodor Link to comment Share on other sites More sharing options...
amit.kukadiya9 Posted May 8, 2014 Share Posted May 8, 2014 I have first changed the font of text field manually then applied the style on text field but style font name is not affected on report text field. Link to comment Share on other sites More sharing options...
amit.kukadiya9 Posted May 8, 2014 Share Posted May 8, 2014 I try to use copy paste format but it is also not working. 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