AnnMary.Thomas
-
Posts
97 -
Joined
-
Last visited
Content Type
Forum
Downloads
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Events
Profiles
Posts posted by AnnMary.Thomas
-
-
What I understand is the query for the table will have param which takes the contract number and fetches the record. Have you defined a parameter under your dataset and passed the parameter value from the main report
-
can you please elaborate the question. It is not clear.
-
I have 2 lists in my Jasper report each having its own datasource.
List 1 : Field A, Field B
List 2 : Field A, Filed B
Now if List1.FieldA value is different from List2.FieldA value they should be displayed in red color.
Is there a way to acheive this
-
Does your subdataset query have the field 'style' or it is only for the main query
-
Version - Jasper 5.6
Use case: I have 100 text fields in my report. For that I have created a style say Style1 with Arial font, size 5, and bold = true. But the pdf report generated will not have these textfields in bold. The work around is to manually go and select each of these text fields and set PDF font to Helvetical bold. Then the report is proper. But again there are 2 problems associated with this.
1) Manually setting 100 text fields is tedious. Again I cannot select all this together as these text fields are in 10 different List components.
2) I also read in some forums where it says PDFFonts is obsolete and we need to use fonts-extension by adding jasperreports-fonts-xxx.jar into the classpath. But when I unzipped this jar and checked, it has only dejavuserif font. But I use Arial.
can any one guide me which is the right approach
-
Create 2 separate Jasper reports. 1 for Image and the 2nd for legend. Now in your code (for ex: Java class), Create a list say JPListand add the 2 reports.
Create an Jasper Print object say JP1.
Now loop through the list JPLIST, listItem=JPLIST(0). Get the orientation value for each report. and set the orientation.
JP1.setOrientation(listItem.getOrientationValue());'Now add the list Item to JP and export
-
I have a text like mm2 . How can i do this in Jasper reports.
varsion Jasper 5.6
-
How to attach a .pdf file to a generated Jasper report
Example: Say I have 2 jasper files, a.jasper and b.jasper. Now these 2 jasper files are exported as a pdf report
in one single pdf file. tht is Page 1 of the pdf will have a.jasper and page 2 will have b.jasper. Now this I have acheived this by using
JRExporter and passing a.jasper and b.jasper as a list. But there is
one more pdf file itself say c.pdf ( not a jasper file, as this is provided by our customer and cannot be created as a japer).
Now I want this c.pdf as the 3rd page of the exported pdf report...
-
Hi hozawa,
I shall explain with example. Say I have 2 jasper files, a.jasper and b.jasper. Now these 2 jasper files are exported as a pdf report
in one single pdf file. tht is Page 1 of the pdf will have a.jasper and page 2 will have b.jasper. Now this I have acheived this by using
JRExporter and passing a.jasper and b.jasper as a list. But there is
one more pdf file itself say c.pdf ( not a jasper file, as this is provided by our customer and cannot be created as a japer).
Now I want this c.pdf as the 3rd page of the exported pdf report...
-
You have to set the PDf encoding property for this. Also you may have to give the unicode characters of these symbols and try
-
Try giving CP1253(Greek) in Pdf encoding property of the field. As delta is a greek symbol this should work for you...
-
I am combining multiple Jasper reports and exporting to single pdf file. But I also have a pdf file which I need to attach to the end of this report. I am currently combining all these jasper reports in to a List and exporting it. But how can I append a pdf file itself to that
-
Give the Stretch type to No Stretch and position to Fix to Top. That should solve your problem. It worked in JSS 5.6.0.final
-
If my answer has helped you please check this as answered :)
-
When I am running the application with the Jasper 5.6 jar I am gettting the folllowing error in Weblogic server console
<net.sf.jasperreports.extensions.DefaultExtensionsRegistry> <BEA-000000> <Error instantiating extensions registry for simple.font.families
net.sf.jasperreports.engine.util.JRFontNotFoundException: Font '
net/sf/jasperreports/fonts/pictonic/pictonic.ttf
net/sf/jasperreports/fonts/pictonic/pictonic.svg
net/sf/jasperreports/fonts/pictonic/pictonic.eot
net/sf/jasperreports/fonts/pictonic/pictonic.woff
' is not available to the JVM. See the Javadoc for more details.
at net.sf.jasperreports.engine.util.JRFontUtil.checkAwtFont(JRFontUtil.java:358)
at net.sf.jasperreports.engine.fonts.SimpleFontFamily.createFontFace(SimpleFontFamily.java:320)
at net.sf.jasperreports.engine.fonts.SimpleFontFamily.setNormal(SimpleFontFamily.java:85)
at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamily(SimpleFontExtensionHelper.java:233)
at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamilies(SimpleFontExtensionHelper.java:204)
at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:173)
at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:142)
at net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory.createRegistry(SimpleFontExtensionsRegistryFactory.java:63)
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsRegistry.java:238)
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:213)
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:162)
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistries(DefaultExtensionsRegistry.java:132)
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:104)
at net.sf.jasperreports.engine.util.JRStyledTextParser.<clinit>(JRStyledTextParser.java:76)
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:182)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:87)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:57)
at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:52)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)
-
Another way od doing this would be to use the List Component.
Drag 2 list components, one for Dark and seconf for Light. Set the datasources of these two lists to ur XML.
Set the Print order property of the Lists to be Vertical
Place the Lists Sided by Side
Add one text field to each List. Set the first text field PrintWhen expression to type =Dark and the second one PrintWhen expressin to type =Light.
This should solve your problem. Hope tis helps
-
Try using List component. You may have to use more than one list
-
Create a variable which will increment for every record and set the initial value to 0. Use this variable for Prinnt When Expression preoperty ${V} <=1 in your field
-
For each text field set Remove Line when Blank to true. And also set each text field Position Type to Float.
-
Hi,
I am shifting from ireport 4.0 to Jasper soft 5.6.0. In ireport the hammer tool would let me compile the single .jrxml file selected currently. But in Jasper soft after clicking the Previewtab, it is giving me the preview,
but I dont see the .jasper updated( the last modified time is still the old time and not the new one). But if I give Build automatically, it is recompiling to .jasper file. But it is also compiling the other files also in the directory,
which is not required.
Tool : Jaspersoft 5.0
-
Can you please tell which property setting? I have more than 20 reports developed in 4.0, and now on we want to develop reports in 5.6. All these reports are accessed from our java Web application. We have included jasper 4.0 library in the current application
-
Yes the Image is in Background band only, still it is selectable
-
I have a report where i am displaying an image as background. when the report gets generated the /g image is selectable. How can we remove that. I dont want the user to be able to select the image.
ireport 4.0
jasper 4.6
-
I have a query which returns 8 fields to generate the report. In this the first 7 fields are of various data types String, Big Decimal etc. But the last field returns Resultset object. (java.sql.Resultset). Within this cursor object I have 10 values which I am displaying in the report. Now the problem is I m calling next() method in one of the fields on this cursor object and displaying the data. Now the issue is as I am retreiving almost 200 records and each record has cursor object, Im running into problems like Opn Cursor Exceed error, as Im not closing these cursors. How can we close these cursor object? Or is ther an alternate approach for this?
ireport 4.0
jasper 4.6
Can I genrate a report for a different locale than the logged in user's locale?
in Products
Posted
Locale locale = new Locale(Locale.JAPAN.getLanguage()); // your new locale in which the report to be generated
paramsForReport.put(JRParameter.REPORT_LOCALE, locale); // Pass the locale as a param to the report