jldubz / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

Document not printed oh hp laserjet p1102 #151

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I have used jzebra latest version to print for HP laserjet p1102 printer.
    <applet name="jzebra" code='jzebra.PrintApplet.class' archive="/applet/jzebra.jar"  width="1" height="1" >
      <param name="printer" value="HP"/>
</applet>

The document is send to the print queue of the hp laserjet printer but no thing 
is printed. 

Here's the log.

Aug 16, 2013 11:19:55 AM jzebra.LogIt log
INFO: ===== SENDING DATA TO THE PRINTER =====
Aug 16, 2013 11:19:55 AM jzebra.LogIt log
INFO: 

     Sample Receipt
     Address
                    Date :8/16/13
----------------------------------------
Sn Particulars     Qty Rate    Amount   
----------------------------------------
1  hello111         1   444     444      
----------------------------------------
          Gross Amount        444
          Discount            44.4
          Net Amount          399.6
----------------------------------------

Aug 16, 2013 11:19:55 AM jzebra.LogIt log
INFO: Sending print job to printer: "HP"
Aug 16, 2013 11:19:55 AM jzebra.LogIt log
INFO: Print job data transfer complete.
Aug 16, 2013 11:19:55 AM jzebra.LogIt log
INFO: Print job has no more events.
Aug 16, 2013 11:19:55 AM jzebra.LogIt log
INFO: Print job received by printer: "HP"
Aug 16, 2013 11:19:55 AM jzebra.LogIt log
INFO: Print buffer has been cleared.
Aug 16, 2013 11:19:55 AM jzebra.LogIt log
WARNING: Tried calling JavaScript "jzebraDonePrinting" through web browser and 
failed (No such method "jzebraDonePrinting" on JavaScript object)
Aug 16, 2013 11:19:55 AM jzebra.LogIt log
INFO: Print buffer has been cleared.

I have tried with printer driver set to Generid/Text only and also set print 
Processor Default Data type as Raw and with Text. But still nothing is printed.

I am using Win7.
Could anyone suggest what might be the problem here?

Thank You 
Sujan

Original issue reported on code.google.com by sujan....@gmail.com on 16 Aug 2013 at 7:48

GoogleCodeExporter commented 9 years ago
Sujan,

Raw Printing features are not supported on any LaserJet printers..

Instead, please try the available PostScript Printing options.

Explanation:
https://code.google.com/p/jzebra/wiki/WhatIsRawPrinting
https://code.google.com/p/jzebra/wiki/WhatIsPostScriptPrinting

PostScript Usage:
https://code.google.com/p/jzebra/wiki/TutorialWebApplet#HTML_Printing
https://code.google.com/p/jzebra/wiki/TutorialWebApplet#PDF_Printing
https://code.google.com/p/jzebra/wiki/TutorialWebApplet#Printing_Images 
(DeskJet/LaserJet section ONLY)

-Tres

Original comment by tres.fin...@gmail.com on 16 Aug 2013 at 1:19

GoogleCodeExporter commented 9 years ago
Thanks Tres! I have been a fool not to think that way for the Laserjet printer. 

The printing is supposed to print the receipt and later will be using the 
receipt printer but I haven't purchased the printer yet and I am not able to 
see the print preview besides the log. 

Is there anyway that I could confirm that the code is working? I can't print it 
on Send To One Note either. Any suggestions would be highly appreciated. 

Thank You
Sujan

Original comment by sujan....@gmail.com on 19 Aug 2013 at 7:20

GoogleCodeExporter commented 9 years ago
Best bet for now is to have someone on the mailing list print it and scan it 
in.  I haven't yet found a print emulator that achieves this. Let me know if 
you find one.  Zebra may offer one for ZPL.

Original comment by tres.fin...@gmail.com on 19 Aug 2013 at 11:08