-
Re: custom webview with browser print
Dmitry ProkhorovFeb 14, 2019 9:42 AM (in response to Mina Samy)
Hello Mina,
The root cause of your problem could bee security restrictions or a deficiency of browser features in your java webview component. A webview component typically isn't a full-fledge browser. As you can see in BrowserPrint documentation it has support for following full-fledge browsers: Internet Explorer v11 or later, Chrome v51 or later, or Safari
Browser Print SDK | Link-OS | Zebra
As a solution you can try to use in your application a custom webview component that is based on Java Chromium Embedded Framework. See details here please:
1) chromiumembedded / cef — Bitbucket
2) How to integrate Chromium Embedded Framework (CEF) with java - Stack Overflow
It could not be guaranteed you will have some success but there definitely a chance. As another option you can implement your application as a server and use full-fledge browser to access it and to run BrowserPrint.
Dmitry Prokhorov
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies
-
Re: custom webview with browser print
Mina Samy Feb 14, 2019 4:16 PM (in response to Dmitry Prokhorov)What about zebra java SDK? Is it promising? Does it need alot of time to implant?
Thanks alot for your reply
-
Re: custom webview with browser print
Dmitry ProkhorovFeb 15, 2019 1:54 PM (in response to Mina Samy)
Hello Mina,
I believe you can use Link OS PC-Java SDK and it's pretty much easy to add it into your project. Here is documentation on API and articles on how to use it:
Link-OS SDK - Zebra Technologies Techdocs
Dmitry Prokhorov
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies
-
Re: custom webview with browser print
Mina Samy Feb 15, 2019 4:01 PM (in response to Dmitry Prokhorov)I have one more question. Is it good way to put "myprinter.sendCommand(command);" of sdk in loop to send the same command several times or there is another better way to achieve this ?
Thanks in advance.
-
-
-