bhavin.panchal
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Downloads
Posts posted by bhavin.panchal
-
-
Hello,
In the design of my report, some unnecessary space are captured automatically in textField as well as StaticText.
Below text,
String value = "THis is checklist, THis is checklist for make ready action. It's include ActivityType and location for trigger point. This checklist for only Project admin role. The checklist name is very long.THis is checklist, THis is checklist for make ready action. It's include ActivityType and location for trigger point. This checklist for only Project admin role. The checklist name is very long."
Above in String value i added only one space between all words. Also In pdf, On first line the string value captured as per above text but in second line they automatically consume extra space in between words.
below the code
textField = new JRDesignTextField();
textField.setX(41);
textField.setY(21);
textField.setWidth(259);
textField.setHeight(25);
textField.setFontSize(10f);
textField.setForecolor(Color.decode("#093B5C"));
textField.setHorizontalTextAlign(HorizontalTextAlignEnum.JUSTIFIED);
jrExpression = new JRDesignExpression();
jrExpression.setText("$P{checkListName}");
textField.setExpression(jrExpression);
band.addElement(textField);
and i also added image for output of pdf.Can anyone know why this happen?
Bhavin Panchal -
How i use Arial Unicode MS in java Project ?
-
You can convert that String into Date at Backend side and after that you pass the date as String in DashBoard.
Unnecessary space Between words
in Products
Posted
Now i removed the Jusified from textField but still i got this space related issue.
String value = "THis is checklist, THis is checklist for makeready action.It's include ActivityType and location for triggerpoint.This checklist for only Project admin role.The checklist name is very long.THis is checklist,THis is checklist for makeready action.It's include ActivityType and location for trigger point.This checklist for only Project admin role.The check list name is very long. fudhu shfuhsi sduhf ushfduf hudshf duh udfd dsudhu"
Below code,
textField = new JRDesignTextField();
textField.setX(36);
textField.setY(99);
textField.setWidth(350);
textField.setHeight(25);
textField.setFontSize(9f);
textField.setForecolor(Color.decode("#0E588A"));
jrExpression = new JRDesignExpression();
jrExpression.setText("$P{checkListName}");
textField.setExpression(jrExpression);
band.addElement(textField);
and below i attached pdf output.