B4J Question Add library in my project

alwaysbusy

Expert
Licensed User
Longtime User
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

PatrikCavina

Active Member
Licensed User
Longtime User
Maybe you can write a small html file (following their guidelines e.g. http://developers.dymo.com/2010/06/02/dymo-label-framework-javascript-library-samples-print-a-label/), put the 'label.print(printerName);' code in a document loaded event and use the loadurl of the webview component?

e.g.
<script>
document.addEventListener('DOMContentLoaded', function() {
label.print(printerName);
}
</script>

I'll try your suggestion and i hope it works.
Otherwise i'll try to use jshell to execute the print
 
Upvote 0
Top