axxshodiq / jzebra

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

how to send png to EPSON #107

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
hi,
i am using olivetti printer ( EPSON U590 EMULATION)
How do i send a photo to my matrix printer 

my procedure :
------------------------------------------
function PrintImageFile()
{
applet.findPrinter("OLIVETTI PR4-SL TOP_Feed");
applet.append(chr(27)+chr(42)+chr(0)); // ESC * 0
applet.appendImage("../pic.png", "ESCP");
applet.append("\r\n");              applet.print();                         
}
function chr(i)
{
  return String.fromCharCode(i);
} 
--------------------------------------------
But I do not succeed
Thanks

Original issue reported on code.google.com by Majid.So...@gmail.com on 11 Dec 2012 at 8:41

Attachments:

GoogleCodeExporter commented 8 years ago
jZebra doesn't know what "../pic.png".  This is a limitation of Java. 

Can you try:

window.location.href + "/../pic.png"

or

 window.location.href + "/../../pic.png"

-Tres

Original comment by tres.fin...@gmail.com on 11 Dec 2012 at 9:13

GoogleCodeExporter commented 8 years ago
thanks for reply
But I do not succeed
Let me ask my question in another way
I want to get the following html page Print
---------------------------------------------------
<body>
    <div> 1. Test Latin Text </div>
    <div> 2. Test Persian Text </div>   
    <div> 3. متن آزمایشی <div>
<body>
---------------------------------------------------
Because there are two languages,i have to take a picture of the page then send 
to print. i need to sample code that explain print image with Epson and jZebra 
applet.
thanks

Original comment by Majid.So...@gmail.com on 12 Dec 2012 at 4:52

GoogleCodeExporter commented 8 years ago
Epson's underlying language (ESC/P) supports many different languages.  Have 
you checked the programming guide to see if you can perform this without a 
picture?

-Tres

Original comment by tres.fin...@gmail.com on 12 Dec 2012 at 1:28

GoogleCodeExporter commented 8 years ago
hi tres
Yes I've earlier checked
how to i print image with jZebra Applet from html page
please answer me
thanx

Original comment by Majid.So...@gmail.com on 12 Dec 2012 at 2:06

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This is not a support forum.  You have provided insufficient evidence to 
illustrate there is a bug with the image printing in the jZebra applet.  If you 
are able to reproduce a bug or need a feature enhancement added to jZebra, 
please reopen this bug report.  Closing, marking as invalid.

For support questions, please contact the mailing list, 
jzebra-users@googlegroups.com

-Tres

Original comment by tres.fin...@gmail.com on 12 Dec 2012 at 3:48