Barcode Printing from EP --using barcode4J (Gurus kindly help me)

Dear Experts,
Barcode Printing from EP --using barcode4J
we want to print employee number as barcode in EP(version 6.4 SP 19).
we tested the barcode creation a standalone class, it works fine
Sample Code as follows
================================
Code128Bean bean = new Code128Bean();
             final int dpi = 150;
             //Configure the barcode generator
             bean.setModuleWidth(UnitConv.in2mm(1.0f / dpi)); //makes the narrow bar
                                                                           //width exactly one pixel
             bean.setWideFactor(3);
             bean.doQuietZone(false);
             //Open output file
             File outputFile = new File("out.jpg");
             OutputStream out = new FileOutputStream(outputFile);
             try {
                  //Set up the canvas provider for monochrome JPEG output
                  BitmapCanvasProvider canvas = new BitmapCanvasProvider(
                            out, "image/jpeg", dpi, BufferedImage.TYPE_BYTE_INDEXED, false);
               //BarcodeServlet.            
                  //Generate the barcode
                  bean.generateBarcode(canvas, "Z454544");
                  //Signal end of generation
                  canvas.finish();
             } finally {
                  out.close();
<b>But the same code i put in wdDoModifyView() or wdDoInit() it throws class not found exception</b>. I have checked that barcode4j.jar and all relevant files are in classpath.
Any help will be rewarded.
Thanks
Aby.

Re: Barcode Printing from EP --using barcode4J (Gurus kindly help me)  
Posted: Aug 24, 2007 5:21 AM    in response to: Ashutosh Moharir         Reply      E-mail this post 
Dear Ashutosh,
<b> It is working now!     ....  :-D  
Can someone  provide me with a more detailed answer
Or Best Practices (step by step) ,that would be Great . </b>
I deeply appreciate your Quick & valuable advice;
and shall create a new posting if any further need arises
Many Thanks,
Aby Jacob
=========

Similar Messages

  • Problem in barcode printing from SAP using VB.

    hello all,
    i have developed a program which will take parameters from the selection screen and will send to the LPT using the VB prog.
    i have used the function WS_EXECUTE in my abap prog. the parameters are concatenated in bcode1 string.like this..
    call function 'WS_EXECUTE'
      exporting
        commandline    = bcode1
        program        = 'c:\bprint\BPRINT.exe'
        inform         = ''
      exceptions
        frontend_error = 1
        no_batch       = 2
        prog_not_found = 3
        illegal_option = 4
        others         = 5.
    my issue is ..... when i press execute button the values on the barcode is not printing what they are passed. means previous string values are printing instead of the current one.
    i have used "free memory" after end-of selection event. Still problem is not solved.
    is there any problem with WS_EXECUTE function.
    can anybody suggest me the changes to be made.?

    the code is
    selection-screen : begin of block blk with frame.
    select-options : material for mseg-matnr no-extension
                                                no intervals.
    select-options :  batch_no for mseg-charg no-extension
                                                no intervals obligatory,
                    mrp for mseg-dmbtr no-extension
                                                no intervals.
    parameters : s_price type mseg-dmbtr.
    selection-screen : end of block blk.
    parameters : no type i.
    no2 = no.
    price = s_price.
    mrp1 = mrp-low.
    split price at '.' into rs ps.
    split mrp1 at '.' into rs1 ps1.
    matnr1 = material-low.
    batch1 = batch_no-low.
    concatenate matnr1 batch1 into bcode1.
      concatenate rs ps rs1 ps1 no1 rs '.' ps into bcode2.
    concatenate '+' bcode1 into bcode1.
    call function 'WS_EXECUTE'
      exporting
        commandline    = bcode1
        program        = 'c:\bprint\BPRINT.exe'
        inform         = ''
      exceptions
        frontend_error = 1
        no_batch       = 2
        prog_not_found = 3
        illegal_option = 4
        others         = 5.
    call function 'WS_EXECUTE'
      exporting
        commandline    = bcode2
        program        = 'c:\bprint\bprint.exe'
        inform         = ''
      exceptions
        frontend_error = 1
        no_batch       = 2
        prog_not_found = 3
        illegal_option = 4
        others         = 5.
    clear : material, batch_no, mrp, s_price, no, text. 

  • Printing from Classic Using OS X Drivers

    Shouldn't I be able to print from Classic using my Epson USB printer's OS X drivers (OS 9 drivers don't exist for this model)? I've tried opening the Chooser in Classic, but the printer doesn't show up.
    Thanks,
    Emily

    Go to Chooser (while in a Classic App) and select LaserWriter 8 driver - even if there's no printer on the right.
    When you want to print, the LaserWriter 8 print dialog comes up and you can select your OS X printers in the destination printer pull-down.
    Good luck.

  • Am unable to print from Firefox (used to be able to) even though I can print from Safari....what should I try?

    have an up to date Firefox and was able to print to HP printer from internet until recently. I can print from internet using Safari so am sure that the problem is in some setting from Firefox. The printer is chosen in preferences and it seems to send a message to printer but only blank paper comes out....and ideas of what to try would be appreciated!

    Hi timcasey-
    I recommend you read this Support article on troubleshooting printing issues:
    [[Firefox prints incorrectly]]
    Hope that helps.

  • I am new to the ethernet communicat​ion using labview. I do not have any hardware. I have two laptop i need to send and recieve the data via these 2 laptop using labview. Kindly help me on this.

    i am new to the ethernet communication using labview. I do not have any hardware. I have two laptop i need to send and recieve the data via these 2 laptop using labview. Kindly help me on this.
    Solved!
    Go to Solution.

    Hi thanks for the help.
    Actually i am trying to send 10 sine signals from server pc to client pc. So i will bundle 10 signals in server pc and send it and in client pc i am unbundling it and need to save in TDMS format.
    Till unbundling i was able to do. TDMS format it is saving only last value. I need to save all the values. Kindly help me on same. I am attaching both the VI.
    Attachments:
    Client.vi ‏62 KB
    Server.vi ‏252 KB

  • How to print from iPad using my airport extreme

    I have a New iPad and an iPhone 4 all connected to my Airport Extreme.  My tower computer is a pc as is all of my laptops at this time. I have downloaded Bonjour Print Services to my pc laptops and they print wirelessly through the Airport Extreme using Bonjour Print Services. How do I print from my iPad since I am connected using the Airport Extreme and the printer is a HP7310 which is not an air printer. Please help!

    Suggest that you try an App like Print Central to see if that will allow the iPad to print to your printer.
    PrintCentral for iPad on the iTunes App Store
    HP also is offering ePrint, which might help as well.
    http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&obje ctID=c02486399&prodTypeId=18972&prodSeriesId=410622
    If still no luck, you really have a question for the iPad support area.  Contact the gurus over there at:
    Using iPad

  • Printing from CS5 using mountain lion on imac

    I have downloaded mountain lion upgrade from originally using snow leopard for my imac and now CS5 does not print. However Photoshop elements 9 is OK. All other document print OK. Is this an Apple problem or Adobe problem?

    Hi Chris Thank you but I have tried what you suggest without success.
    I attach this message:-

  • Problems printing from Aperture using Epson R340

    I have an Epson R340 and happily use all the paper settings such as Glossy print from Photoshop to the printer. Having now installed Aperture I find I am not able to do this. I have reloaded the Epson drivers but still not able to do this. To elaborate when I press Print image from Aperture I go into Print settings - and find that the following items have a line through them - Print Settings, Colormanagement, Printoption and Extenstionsetting. This is not the case when I look at the menu via Photoshop. Can anyone help me on this.

    I have an Epson R320 and all the Epson's printer driver options are available to me in Aperture. My list is slightly different: Print Settings, Color Management, Page Layout Settings, and Extension Settings with the words separated by spaces and each has a capitalized first letter.
    I'm wondering if Aperture isn't seeing your Epson driver files. You might want to remove the Aperture plist file from your User>Library>Preferences folder and relaunch Aperture.

  • Printing from InDesign Using ICC Profiles

    Hello,
    I'm trying to find the best way to print from InDesign to my Epson R2400. I'm a graphic design student, with a background in Photography. When printing images from photoshop, I always use the proper paper profile for the inkjet paper I'm using and I get spot-on results. My monitor is profiled, and I have a decent knowledge of color management.
    When I print from InDesign, I achieve the best results using the Adobe RGB1998 output profile in the print dialogue. This produces fair results, but not as accurate as I get when printing images from photoshop using the appropriate paper profile. When I use a paper profile from InDesign (i.e. Epson SP2400 Enhanced Matte), the results are flat and washed out. I've tried opening the print driver dialog (via the "printer" button) and making sure that color management is turned "off" to avoid double-profiling, but this does not fix the problem. I've also tried checking the "print as bitmap" box in the InDesign print dialogue, but this only makes things worse.
    Can anyone tell me why I can't print with an appropriate paper/profile via InDesign? I'm usign CS3, with a Macbook Pro, running Leopard. Epson R2400 with Epson Inks, Epson paper and matching Epson ICC Profiles.
    Thank You.

    It is the monitor profile. Change profiles and you will see a different output each time.
    The condition of the monitor can in no way affect the output, but as soon as you re-profile a change in the monitor settings the new profile will affect the output.
    In theory if you can hardware calibrate the monitor and not create a new profile (what software might allow this?) there would be no changes to the print but what about what you see on the screen?
    Of course this is all based on you creating a ID specific paper profile.

  • How can I print from gmail using Firefox 3.6?

    ''Duplicate post, continue here - [/questions/762203]''
    I am using Windows 7, Firefox 3.6 for my gmail. I had no problem printing from my gmail account until Firefox updated to 3.6. Now when I try to print, I get a message "Unknown Print Error Occurred" and nothing will print. I cannot print from the "File" list either. However, I can print from IE 8. Is Firefox aware of this issue?

    Try the '''''reset''''' described here: <br />
    http://kb.mozillazine.org/Problems_printing_web_pages#Reset_printer

  • Cannot print from firefox using windows 7 x64 pro

    I cannot print using Firefox 3.6.3. I have a canon mx340 printer and am running Windows 7 Pro 64 bit. I can print from files, email (Outlook), IE and everything else. I downloaded newest print drivers. I reset printer in Firefox using "about:config" That fixes it temporary, but after a little bit of time it stops printing again.
    == This happened ==
    Every time Firefox opened

    I fixed this problem. I had to turn off the browser virtualization feature in Zone Alarm Extreme Security. This wiped out all of the Firefox settings, but I had bookmarks, etc. backed up. (answered by original poster)

  • How do I print from iPhone using Airport Express to a regular printer over enet

    I am trying to figure out how to print from my iPhone or iPad to a regular printer that is on my wired ethernet network. I purchased Airport Express and my iPhone recognizes the Airport Express. I connected the USB port to the USB port on printer. The printer recognizes the Airport Express. But my iPhone does not recognize the printer. Any ideas?

    See this article about AirPrint: http://support.apple.com/kb/HT4356
    Note the next-to-last bullet in "Notes" near the bottom:
    AirPrint printers connected to the USB port of the Apple AirPort Base Station or Time Capsules are not supported with AirPrint.
    I do not believe you can use AirPrint to print to a wired printer, period.  Very likely, you cannot use even a printer manufacturer's app to print to such a printer.  You would need a wireless printer.

  • How to setup HP LaserJet 1320 to print from Windows using Airport Express

    My situation was that I could print locally when the printer was directly plugged into the computer's USB port but when I tried to print through the Airport Express (with the printer plugged into the AEBS USB port) nothing would happen. (I could print fine from my MacBook Pro, just not from any Windows machine.)
    It seems (although I'm still not quite sure why) that the issue was with the port address created by the Bonjour for Windows wizard.
    The following worked like a charm:
    http://discussions.apple.com/thread.jspa?threadID=1688294

    I don't think it answers the original question. PrintCentral, according to the description you are pointing to print
    s to:
    1) most wireless printers (he's got a network printer, I assume a wired one)
    Works just fine on my 2 Ethernet network printers.
    2) all printers via a Mac. This option although useful looks a bit strange. If I have to have a Mac on all the time, I would use it to view stuff and print from there. No need for an iPad.
    Not sure why you would want to use this option if you want to print directly from the iPad to a printer. My wife's iPad prints to either network printer just fine when my Mac laptop is shut down.
    Looking for a solution myself... We need CUPS for iPad!
    You might want to let Apple know.
    Apple - iPad - Feedback

  • Print from ipad using app

    I attempt to use app to print from ipad through an hp app but doesn't work. Says can't find printer. Hpdeskjet4580

    Hi Grandmasuzi,
    Welcome to the HP Support Forums.  I understand that you are unable to print to your Deskjet F4580 printer from your iPad using the HP ePrint mobile app.
    I’m presuming that the printer is already connected to your wireless network. If it isn’t, please follow the steps in the Installing the Printer Software for a Wireless Network Connection document for your computer’s operating system. If you already have the computer setup with a USB cable connection, each operating system contains the steps to switch from a USB cable connection to a wireless connection.
    I’ve included the How to Use Apple's AirPrint Over a Wireless Network document.  Please follow the instructions in Step One listed in the section titled “What if a 'No AirPrint Printers Found' message displays on my Apple device?”.  I know this isn’t the error you have but these are the steps I recommend to connect the iPad to your printer.  If those steps don’t help, please follow the instructions for Step Two in the same section.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Problems printing from safari using an HP photosmart 7960 printer

    for some reason my printer will now only print from word or other applications but when i try and print a web page from safari my safari crashes. help anyone!

    Dh11unit-
    If there is a print job stuck in the print queue, double-click the iPad's Home button.  A row of recent Apps will line up along the bottom of the screen.  Scroll across and look for the Print Center icon.  If you find it, you should be able to delete the bad print job.
    If the Print Center is not there, your print job probably did not proceed far enough.  It is possible your WiFi router does not correctly handle Bonjour data required by AirPrint.  If that is the case, you would need to contact your router's manufacturer to see if there is a change to its setup or a firmware update that will fix the problem.
    I suggest you download the free HP App, ePrint Home & Biz.  It has limitations, but should get you printing.
    Fred

Maybe you are looking for

  • How do I stop iTunes back up from deleting my photos?

    So I went to add some music to my iPhone last night, having added some stuff to iTunes. It was the third time I plugged my iPhone into the PC, having used itunes to sync it, activate it and all the rest. Plugged it in and was greeted with "welcome to

  • Active Directory Domain Services crash after Administrator renames object in Active Directory Users and Computers

    Hello. We have two domain controllers - node1 (Windows 2008 R2) and node2 (Windows 2012 R2). When administrator connects to node2 and tries to rename some object in AD (for example, user) AD Domain Services crashes and reboot server after 60 seconds.

  • How do I install a Forum in Adobe Muse?

    I am designing a website that requires a Forum..  Could anyone tell me how to do this Thanks   [email protected]

  • Playing live with garageband

    I want to make an arrangement on garageband and have it follow my tempo when I play. I'm a music teacher. I want my accompaniments to be fuller by including a garageband arrangement. But, I'm still playing my guitar or keyboard live. My students may

  • Ultra 60 keyboard not detected

    Hello, I have an Ultra 60, 2X450MHz, 2GB RAM, 2X 50GB HDD, Creator 3D. I recently used the Solaris 10 CD-ROM to format>analyze>purge the hard disks, which went without errors. Now I connect a Sun Type 5c KB/Type 5 mouse, and one of the following occu