How to Parse a print job?

Hi,
I have a print file (e.g. test.prn). In this file, there are 5 printing jobs (e.g. printing receipt, note, demo..). How can I parse this file into different 5 files?
I tried to read this file into a string then used StringTokenizer to parse. But it did not succeed.
Would anybody have any idea to handle this issue?
thank you very much.
Hung

Would anybody please help me?
Hung

Similar Messages

  • How to cancel a print job in progress

    I have a HP C5580.  When i was using Windows ME on my former PC, I could easily go to Printers, select the 5580,  hit documents in queue, and hit cancel , and the printer stopped.
    Got a new Compaq  PC with Windows 7, and I can't figure out how to cancel a print job  mid stream.  I go to Printers and Devices, giet the page that allows me to view the print jobs in queue, I hit "print job in process", but the "Cancel" is not in bold print and I can'tfind any other way to cancel the job.
    Help !

    The easiest way to cancel a print job would be by pressing the cancle button on the front panel.  This is the "X" button near the right side of the control panel, see pages 10 and 11 of the user manual here.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • How to comand de print job to initiate from diferent positions?

    Hy folks,
    I have a problem about how to print labels, more specifically how to comand the print job to initiate from diferent positions of the continuous forms paper.
    See what I meen:
    I have a label continuous forms paper with 2 colunns x 3 lines, six positions, to print from de right to the left and them downward,  ok?!
    I need to know a way to start the print from the 1st, 2nd, 3rd, 4th, 5th or 6th (or even from 2nd ou 3rd line). Only by this way, the print would respect  the layout and the line break between pages. The manual set of this positon at the printer is not acceptable to my client.
    See, I'm just starting to use Crystal and its tools,  so I don´t know even it is possible to do, but I've heard that is possible!
    Can you help me with this issue?
    Thaks for the attention
    Denis

    Define a custom Paper size

  • How can I delete printed job list Delete jobs grayed

    How can I delete printed job list Delete jobs grayed

    Apple lets you see a list of what is printed out but there is no way to erase the list and mine is two years of all that printed out. I want to erase it but there is no place to get rid of the list or the items on it. Epson said it was an Apple problem. Apple doesn't seem to know the answer. You can only delete jobs when it is not grayed out and it is usually for those you have not printed . I am hoping someone can figure it out.

  • How do I cancel print job envy 4500

    envy 4500 - how do I cancel a print job in progress
    This question was solved.
    View Solution.

    Hello @neilann, 
    Welcome to the HP forums.
    I understand that you would like to know how to cancel a print job that is in progress.
    I would like to help.
    Depending upon your operating system, do one of the following:
    ● Windows 8: Point to or tap the upper-right corner of the screen to open the Charms bar, click the Settings icon, click or tap Control Panel, and then click or tap View devices and printers.
    ● Windows 7: From the Windows Start menu, click Devices and Printers.
    ● Windows Vista: From the Windows Start menu, click Control Panel, and then click Printers.
    ● Windows XP: From the Windows Start menu, click Control Panel, and then click Printers and Faxes.
    Double-click the icon for your printer to open the print queue.
    On the Printer menu, click Cancel all documents or Purge Print Document, and then click Yes to confirm.
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • How to schedule a print job in Lion.

    I had snow leopard and when I upgraded to lion I can't figure out how to schedule print jobs. I use to be able to do work at night. Then print in the morning so I wouldnt disturb anyones sleep. How do I do it with Lion?

    I have to agree that it's lame not having the Scheduled Printing as an option. I will reiterate that I too enjoyed "completing" a task to print in the morning in order to not disturb others while sleeping.
    I've already sent Apple some Feedback. Hope it works and we can bring back this efficient option.
    Here's the link to the Mac OS X Feedback page: http://www.apple.com/feedback/macosx.html
    Cheers!

  • How to clear completed print jobs in Leopard?

    It is possible to clear completed print jobs in Tiger but I couldn't find it in Leopard now. I have a DELL 5100.

    Andre Marion wrote:
    I have the same problem here. Sure you can use the "hide completed jobs" but that's not the point. The Delete job menu selection should do what it says it will but it doesn't.
    Everyone has this problem. The workarounds given above are exactly that, workarounds.
    This is a bug. If you say delete something and nothing happens (not even a warning telling you that you can't delete this item) then it's a bug.
    OK, it's a bug. No one disputes that the Delete button not working is a bug.
    As for going into the CUPS admin interface, that is way over what a general user should have to do. I know how to do that, but the point of using a Mac is that I shouldn't have to do such things.
    This is debatable, but what's wrong with learning something new and having another workaround until Apple gets around to fixing this?
    This needs to be fixed.
    Submit feedback to Apple about this issue, but they are probably already aware of it since it has come up before.

  • How to kill a print job?

    For some reason, I have a print job that is printing endless blank pages.
    It no longer appears in the printer's print queue. how do i delete it?

    Is there a way of pausing the printer, and sending $1B $45 to the printer? It's only 2 bytes, for crying out loud. Sheeeeesh. It's bugs like this that make the Mac look bad.
    Don't know and never cared. Maybe somebody has done some research along these lines. I haven't really needed anything like this since the Print Screen button quit working when we went to Windows and System 7 (yeah, it's a copy screen button now).
    It would seem that you would need some kind of command line program running, or maybe an applescript or automator action. Then you would also have to be able to ensure that your model of the hundreds of available printers from all the brands actually honor or respond to the code at all or in time to be of any use. In addition, I'd assume that the configuration of the printer (local, network, IPP, shared with Mac, shared with Windows etc) could affect the required code or syntax.
    If there is a feature missing in an OS, then it's not really a 'bug'. That's a pretty loose description to use. That's like saying that not having a 'print' button on a keyboard is a bug. It's a feature I'd like (but probably get in trouble with), but I've never taken the time to map a key combo for it. If I wanted to, I'd probably install Quickeys again like back in the '90s.
    Meanwhile, I try to keep it simple, I just turn around, face the printer with a glare, and flip the switch. No code to remember, no command line or script to run, no argument or delay's from the printer. Our best network printer is within a couple of feet of my desk
    I'll just bet this thread brings up a bunch of methods that can cancel a print. Including at least 2 or 3 terminal commands and a script or two. Here's one video demo on how to write a script to cancel printing: http://www.youtube.com/watch?v=xH0Yami9_0&feature=PlayList&p=1512FA817EBBF876&playnext=1&playnextfrom=PL&index=19 - I didn't bother to actually do this. Too many Mac's to worry with.
    Problem is, I won't remember it when I need it. Killing the power is so satisfying and proactive.

  • How to remove old print jobs off the eprint site

    How do you get rid of recent print jobs on the HP ePrintCenter?
    This question was solved.
    View Solution.

    At this time that is not an option in ePrint Center.
    If I have SOLVED your issue, please feel free to provide KUDOS and make sure you mark this thread as SOLUTION PROVIDED!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • How to cancel a print job on the hp officejet 8600 pro running xp

    How do cancel a print or copy job on the Officejet 8600 Pro Premium?  There is no "cancel" button on the control panel.  Do I have to go through the software?  Time consuming -
       Thanks!
    This question was solved.
    View Solution.

    scarlattid3,
    The cancel button should be located in the bottom right corner of the screen. The only thing is it's not going to show up until you start the print job or copy and then it should appear for you.
    Let us know if you are able to find this.
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • Printer Queue - How can I hide print job title and username?

    Hi,
    Does anyone know if it is possible to hide print job title and username in the printerqueue?
    Because of our privacy agreement we would like to hide this information, 
    Workstation OS: Windows 7 x64 
    Printserver : MS 2008 R2
    Thanks in advance
    Mark

    Not the user name but the job name is changed to Print Document when the print jobs are sent to Server 2012 and 2012R2.
    There is no Windows feature like this in 2008R2.  There are third party products that include job rename features for 2008R2
    Alan Morris formerly with Windows Printing Team

  • How do I purge print jobs on an officejet 4215 using windows 7 64 bit OS?

    The all-in-one officejet 4215 will not print a print job nor will it delete the print job from the queue. I have uninstalled the printer and reinstalled, unpluged and disconnected from the network and nothing works. 

    Hi,
    Please clarify your meaning "reinstalled" the printer - The driver for your printer already included within Windows7, any software you may use is not intended to Windows7.
    May the stuck print job being printed upon restarting the PC?
    If so, i would recomment you to try and disable the USB Ports power Management. It may cause connectivity issues with the LIDIL printing language being used by your printer:
    Right click on Computer.
    Click Manage.
    Open the Device Manager from the left pane.
    Locate the Universal Serial Bus Controller category, double click to expend it.
    Locate the first USB Root Hub
    Double click it, then click the Power Management tab.
    Clear the Allow the computer to turn off this device to save power check box.
    Click OK.
    Repeat steps 6 through 8 for each USB Root Hub listed in the Device Manager.
    Now follow and check for any improvement.
    Please let me know of any progress,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How do I cancel printer job queue? CanonBJC-250 will not function because of long queue. cannot find control.

    Apparently the print order was pressed several times. Now there is a long list of print orders and the printer will not work.

    This is more of a Ubuntu-related question than a Firefox one. When print jobs are queued up, you should get a printer icon in the notification area (beside your clock by default). Clicking on the printer should allow you options to cancel the print jobs. Give it a try -- I can't guarantee if it works as I haven't got any printers installed in my Ubuntu.

  • How to make different print jobs from one PC

    Hi
    We have a problem to make 2 different print jobs at same printer with one PC.
    We use Adobe Acrobat X Standard or Acrobat Reader 9 both no sucess.
    we want following
    1. print A4
    2 Print A6
    Program find out itselw when to print A4 or A6 from different location at the same printer or at 2 different printers.
    Bothe print 1 and 2 is PDF file.Print 1 is for invoices - print 2 is for labels
    Is that posibel with Adobe?
    BR
    Flemming

    Hi and welcome to the RoboHelp forums. You may be better placed to ask this question on the Acrobat forums as I expect knowledge about printing PDFs would be limited here. However I suspect that you'll need to set-up different Print Options inside Acrobat to do what you want. This is not my area of expertise though.
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • Hi, may i know how to resume the print job from HP P1102w?

    I've configured the P1102W as ePrinter if there anyway to resume the printer in stead of cancel the print job when the printer out of paper?

    Dear ccyee425, 
    Once you load the paper the print job should automatically resume if it does not unfortunately there is not an option to resume the job in the ePrintCenter. You have to send the job again.
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP

Maybe you are looking for