Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » BIRT REPORT/UPC - BARCODE (Generate a report from an HTMl with UPC/BARCODE)
BIRT REPORT/UPC - BARCODE [message #1008222] Mon, 11 February 2013 09:45 Go to previous message
Leo Mising name is currently offline Leo Mising name
Messages: 10
Registered: July 2009
Junior Member
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.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Font problem
Next Topic:BIRT Library Question
Goto Forum:
  


Current Time: Fri May 24 13:27:42 EDT 2013

Powered by FUDForum. Page generated in 0.01752 seconds