EB and BT printing on iMZ320

Are there any best practices for using the Enterprise Browser with printer iMZ320 connected via BT ?   Jiri

Ritesh Gupta
: do you have any

: do you have any documentation?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Jiri Novotny
Ritesh, I open the dialog for

Ritesh, I open the dialog for my partner. They have available documentation and help which is part of the EB installation on the PC.

We need advise how to setup JS on the WEB apps to make it running /printing on iMZ320.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Tomas Horak
Hello Ritesh,as Jiri wrote,

Hello Ritesh,
as Jiri wrote, we are searching information how to call iMZ320 from our WEB apps. We have EB in MC67 and printer is connected by bluetooth.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Ritesh Gupta
Hi,Please look at these links

Hi,

Please look at these links: & .  Let me know if that answers your question.

-Ritesh

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Jiri Novotny
Hi Ritesh, I already sent

Hi Ritesh, I already sent this link and screen copies to partner. I  just wait for response. Jiri

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Tomas Horak
Hi Ritesh, Hi JiříI discussed

Hi Ritesh, Hi Jiří
I discussed it with our developers and it seems very useful. Thank you very much.

Tomas

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Tomas Horak
Hi Ritesh, can you help me

Hi Ritesh, can you help me with next error message from log file, please?

PrinterZebraJNI| JNI init failed: JNIEnv is null

Why is JNIEnv null?

Thanks.

Tomas

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Ritesh Gupta
Hi Tomas,can you post some

Hi Tomas,

can you post some sample code that is giving you this error?

-Ritesh

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Tomas Horak
<html>    <head>       

<html>

    <head>

        <script type="text/javascript" charset="utf-8" src="eb/ebapi.js"></script>

        <script type="text/javascript" charset="utf-8" src="eb/eb.printer.js"></script>

        <script type="text/javascript" charset="utf-8" src="eb/eb.printerzebra.js"></script>

     

  <script type="text/javascript">

        function print() {

            alert("begin");

            EB.PrinterZebra.getDefault();

            alert("end");

        }

        </script>

  </head>

    <body>

    <p>Press button to print.</p>

    <button onclick="print()">Print</button>

    <p id="message"></p>

    </body>

</html>

LOG FILE:

E 12/15/2014 21:42:35:628 000004e5          MotoBarcode| RS507 not supported

E 12/15/2014 21:42:35:908 000004c8         RhodesAppJNI| nativeNotify

E 12/15/2014 21:42:35:908 000004c8            RhodesApp| enter notifyReceiver

E 12/15/2014 21:42:35:908 000004c8            RhodesApp| calling onNetworkStatusChanged

E 12/15/2014 21:42:40:660 000004d9               Rhodes| JNIEnv is not set for this thread!!!

FATAL 12/15/2014 21:42:40:661 000004d9      PrinterZebraJNI| JNI init failed: JNIEnv is null

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Tomas Horak
Note: Demo application from

Note: Demo application from does not work, too (scan demo).

Tomas

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Tomas Horak
<!DOCTYPE html PUBLIC "-//W3C

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="cs" xml:lang="cs">

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <meta http-equiv="Content-Language" content="cs" />

    <title>Zebra Test</title>

    <!-- styles -->

    <style type="text/css">

        div#buttons { padding: 50px; text-align: center }

        div#buttons button { width: 100px; margin: 10px auto 10px auto; display: block }

    </style>

    <!-- js -->

  <script type="text/javascript" charset="utf-8" src="EB/ebapi.js"></script> 

    <script type="text/javascript" charset="utf-8" src="EB/eb.printer.js"></script> 

    <script type="text/javascript" charset="utf-8" src="EB/eb.printerzebra.js"></script>

</head>

<body>

    <script type="text/javascript">

        // namespace pro nase funkce

        var digi = digi || {};

       

        // pseudo trida pro obsluhu zebra

        digi.Zebra = function () {

            alert("1");

            this.printer = new EB.PrinterZebra(); // zebra API

            alert("1");

            // pripoji se s tiskarnou Zebra s defaultnim nastavenim

            // pokud je potreba nastaveni jine, je nutne dle API

            // pouzit connectWithOptions()

            this.connect = function(options) {

                try {

                    alert("connect");

                    this.printer.connect(function (status) {

                        alert("status: " + status);

                    })

                }

                catch (e) {

                    alert(e);

                }

            }

            this.print = function (rawString) {

                try {

                    alert("print");

                    this.printer.printRawString(rawString, null, function (status) {

                        alert("print: " + status);

                    })

                }

                catch (e) {

                    alert(e);

                }

            }

        }

        var zebra = new digi.Zebra();

  </script>

    <h1>Zebra test</h1>

    <div id="buttons">

        <button id="button-connect" onclick="zebra.connect()">Pripojit se</button>

        <button id="button-print" onclick="zebra.print('Hello, Digi!')">Zkusebni tisk</button>

    </div>

    <p id="message">

    </p>

</body>

</html>

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments