Jump to content
We've recently updated our Privacy Statement, available here ×

cathyben3

Members
  • Posts

    20
  • 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 cathyben3

  1. iReport is a GUI tool to develop your reports which helps you to check how your jasper report (.jrxml) look like once generated. Your report may contain some complex queries, some business functions that i believe you dont want to expose to your client. If you provide iReport, just to run the report, you may expose many other things also.
    Second thing, iReport is commercial, so you may need to pay for it's usage at different end. However I am not sure how they charge you on what basis.
    As per my suggestion, jut to execute/run the report at client end, 1. prepare a report using iReport in your development environment, 2. Identify a way to run the report at client end (ie. a java program, or a jsp or an applet and other alternates) and 3. Deploy it. You will not need to install iReport at client end.
    Hope this helps.

  2. It's my pleasure to answer your question. Here's a sample code for you:

    package br.com.tce.support;/** BcImage.java** Created on 20. April 2004, 13:21*///package it.businesslogic.ireport.barcode;/**** @author  Heiko*/import java.awt.image.BufferedImage;import net.sourceforge.barbecue.BarcodeFactory;public class BcImage {        private static net.sourceforge.barbecue.Barcode bc = null;        public static net.sourceforge.barbecue.Barcode getBarcode() {                return bc;        }        public static BufferedImage getBarcodeImage(int type, Object aText, boolean showText, boolean checkSum) {                // 2of7, 3of9, Bookland, Codabar, Code128, Code128A, Code128B, Code128C, Code39, EAN128, EAN13, GlobalTradeItemNumber, Int2of5, Int2of5, Monarch, NW7, PDF417, SCC14ShippingCode, ShipmentIdentificationNumber, SSCC18, Std2of5, Std2of5, UCC128, UPCA, USD3, USD4, USPS                String text = new StringBuffer().append(aText).toString();                try {                        switch (type) {                                case 0: bc = BarcodeFactory.create2of7(text); break;                                case 1: bc = BarcodeFactory.create3of9(text, checkSum); break;                                //case 2: bc = BarcodeFactory.createBookland(text); break;                                case 3: bc = BarcodeFactory.createCodabar(text); break;                                case 4: bc = BarcodeFactory.createCode128(text); break;                                case 5: bc = BarcodeFactory.createCode128A(text); break;                                case 6: bc = BarcodeFactory.createCode128B(text); break;                                case 7: bc = BarcodeFactory.createCode128C(text); break;                                case 8: bc = BarcodeFactory.createCode39(text, checkSum); break;                                case 9: bc = BarcodeFactory.createEAN128(text); break;                                //case 10: bc = BarcodeFactory.createEAN13(text);       break;                                case 11: bc = BarcodeFactory.createGlobalTradeItemNumber(text); break;                                //case 12: bc = BarcodeFactory.createInt2of5(text, checkSum); break;                                case 13: bc = BarcodeFactory.createMonarch(text); break;                                case 14: bc = BarcodeFactory.createNW7(text); break;                                case 15: bc = BarcodeFactory.createPDF417(text); break;                                case 16: bc = BarcodeFactory.createSCC14ShippingCode(text); break;                                case 17: bc = BarcodeFactory.createShipmentIdentificationNumber(text); break;                                case 18: bc = BarcodeFactory.createSSCC18(text); break;                                //case 19: bc = BarcodeFactory.createStd2of5(text, checkSum); break;                                case 20: bc = BarcodeFactory.createUCC128("", text); break;                                //case 21: bc = BarcodeFactory.createUPCA(text); break;                                case 22: bc = BarcodeFactory.createUSD3(text, checkSum); break;                                case 23: bc = BarcodeFactory.createUSD4(text); break;                                case 24: bc = BarcodeFactory.createUSPS(text); break;                        }                        bc.setDrawingText(showText);                        return net.sourceforge.barbecue.BarcodeImageHandler.getImage(bc);                }                catch (Exception e) {                        //generate a runtime exception, invalid value passed.                        //the user must be notified if fail                        throw new RuntimeException(e.getMessage());                        //return null;[/code]

    And I also found a tutorial about how to use bar code in jasper reports in java.

    Hope these references can help you solve the mistakes in generating code 39 in irepot.

    Hope the post can also help some novices.

    Good luck.

  3. Hi,mfassbender

    Are your problems still exsisting? I'm sorry maybe my experience is not enough, but I've also met the same problem with you, so I hope I can help you.

    The possible resolution are follow:

    There's something wrong with you java application, you can reinstall it. Or your java version is not compatible with iReport 2.0.1, you can change another, it's easy to find on google.

    Maybe your barcode generation cannot work in java and Ireport. I've ever change a java barcode generation directly. Or you can goole other code 128 generation for ireport. You can find many such tools on google.

    That's all, hopre my experience is helpful to you, if you still have some problems, you can ask me gain.

    Good luck.

×
×
  • Create New...