title: oracle apex barcode generation using javascript
body: <p>I have an apex classic report, which has a barcode column. I managed to display code128 barcode format using the below jquery plugin.</p>
  
  <p><a href="http://barcode-coder.com/en/barcode-jquery-plugin-201.html" rel="nofollow">http://barcode-coder.com/en/barcode-jquery-plugin-201.html</a> and following the below steps,
  1. add the following javascript code to the header of the region</p>
  
  <pre><code>var bc;
  $("[name=bcTarget]").each(function(index) {
  bc = $(this).html();
  $(this).barcode(bc, "code128", {barWidth:1, barHeight:30}); });
  </code></pre>
  
  <p>2. add the following to the HTML EXPRESSION section of the column</p>
  
  <pre><code>&lt;div name="bcTarget" id="bc_#ITEM_BARCODE#" class="barcode" &gt;#ITEM_BARCODE#&lt;/div&gt;
  </code></pre>
  
  <p>The issue I have is, I can't change the width of the barcode. The barcode function has a barWidth parameter (int), which I have set to 1, the barcode width is still not short enough.</p>
  
  <p>I tried to change the font size via CSS but no luck.</p>
  
  <p>Anyone has any suggestions?</p>
  
  <p>Thanks a lot</p>