tommy1606
-
Posts
5 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Posts posted by tommy1606
-
-
Hello,
i am setting properties for elements in ireport. For example on a textfield.
In java the textfield is represented by a JRTemplatePrintText object.
I was unable to get the properties here until i found this
So adding a property net.sf.jasperreports.export.size to textfield allows me to get this properties in java on JRTemplatePrintText.
But adding the same property to a barcode (barcode4j) results in a JRTemplatePrintImage object and no properties are available.
Is this a bug or what i am missing?
-
Hello,
i am currently writing a custom report exporter.
My report contains lines, text, rectangle and a barcode.
For the custom reporter i am extending JRAbstractExporter and implementing exportReport() method.
Iterating over jasperPrint.getPages() and for every page iterating over jrPrintPage.getElements.
Elements are for example JRTemplatePrintLine, JRTemplatePrintText, JRTemplatePrintRectangle and so on....
So far so good..But the barcode element is an JRTemplatePrintImage... i guess because exporters like pdf exporter outputs svg images.
But for my custom exporter i have to output something likeBARCODE
C128B;DARK;40;15
*barcode value*
STOPand not a svg image!
BUT I SEE NO WAY HOW TO GET THE C128B INFORMATION FROM JRTemplatePrintImage!
In the jasperDesign oder jasperReport object, the barcode is represented by net.sf.jasperreports.components.barcode4j.Code128Component class. In the jasperPrint object by JRTemplatePrintImage.
I didn't find anything like JRTemplatePrintImage.getBarcodeComponent().getBarcodeType()...I even didn't find a way to get the text under the barcode and the text in the barcode from JRTemplatePrintImage.
But without barcode export possibility i can trash my exporter...
Any hint for me?Kind regards
-
all right. but i want to export pdf from java to file. without a pdf printer or something. i am using the jrpdfexporter to get this working.
no way?
-
Hello,
i want to export a report to pdf.
i'm looking for the parameter / command to get 2 / 4 or more report pages exported to one page in a pdf file.
here is what i mean http://www.stanford.edu/group/cubberley/node/3603
what is the parameter in java source to do this?
greets
find out barcode properties of the JasperPrint
in Products
Posted
Hello guenther,
i'm facing the same problem now.
Your post is old i know, but have you found any solution?
This community seems to be dead
thx