BIRT REPORT/UPC - BARCODE [message #1008222] |
Mon, 11 February 2013 09:45  |
Eclipse User |
|
|
|
Hi guys,
I have a question hope someone can give me a heads-up.
I am using:
Birt 3.7.2
Tomcat6
Ubuntu 10
MySQL
I have a JSP which is called by the user. The JPS concatenates an HTML string which in turn is inserted into a MySQL table/field.
The concatenated HTML string uses a jQuery plugin to generate a UPC/barcode. Inside the HML Head I have:
<script type="text/javascript" src="http://[IP ADDRESS]/birt/webcontent/birt/upc/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="http://[IP ADDRESS]/birt/webcontent/birt/upc/jquery-barcode-2.0.2.min.js"></script>
Then in the HTML Body I have:
<div id="bcTarget"></div>
<script>
$("#bcTarget").barcode("012345678", "code39",{barWidth:1, barHeight:30}) ;
</script>
Finally, I call the Birt report which selects the appropriate HTML from the table. I place the HTML in a Dynamic Text field:
<VALUE-OF format="HTML">row["HTMLSTRING"]</VALUE-OF>
The HTML is rendered correctly but with no UPC/barcode. I try the HTML outside of Birt and it generates the barcode correctly.
I have also tried to place the jQuery files inside /webcontent/birt, but this does not work either.
Please help.
|
|
|
|
|
|
|
|
|
Re: BIRT REPORT/UPC - BARCODE [message #1220326 is a reply to message #1020497] |
Wed, 11 December 2013 01:51  |
Eclipse User |
|
|
|
Kanly Thai wrote on Mon, 18 March 2013 06:11The below UPC barcode SDK for Java that can easily create UPC barcodes in BIRT report may be helpful.
www.avapose.com/java_barcode/upca_generator.shtml
thanx for sharing this good site ,useful!
|
|
|
Powered by
FUDForum. Page generated in 0.04479 seconds