PatrikCavina Active Member Licensed User Longtime User Mar 3, 2017 #1 Hi, I should print from my project to a DYMO printer. I tried to use JFX8Print library but despite having installed dymo drivers, printer didn't work. So i went to the dymo site and i downloaded and installed the SDK of the printer. ( http://www.dymo.com/en-US/dymo-user...software-developers-kit-dymo-sdk-v8-windows-p ) But now i don't know what add in my project to implement the SDK
Hi, I should print from my project to a DYMO printer. I tried to use JFX8Print library but despite having installed dymo drivers, printer didn't work. So i went to the dymo site and i downloaded and installed the SDK of the printer. ( http://www.dymo.com/en-US/dymo-user...software-developers-kit-dymo-sdk-v8-windows-p ) But now i don't know what add in my project to implement the SDK
Erel B4X founder Staff member Licensed User Longtime User Mar 5, 2017 #2 Is this a Java library? Can you post a link to the documentation? Upvote 0
PatrikCavina Active Member Licensed User Longtime User Mar 6, 2017 #3 Erel said: Is this a Java library? Can you post a link to the documentation? Click to expand... Hi Erel, the documentation and the js library are in the link below. https://www.mediafire.com/folder/f0bt1yq9v6ug9/Documentation_&_Library (I didn't upload the documentation directly in this post because size of files are big to be uploaded as attachment) Last edited: Mar 6, 2017 Upvote 0
Erel said: Is this a Java library? Can you post a link to the documentation? Click to expand... Hi Erel, the documentation and the js library are in the link below. https://www.mediafire.com/folder/f0bt1yq9v6ug9/Documentation_&_Library (I didn't upload the documentation directly in this post because size of files are big to be uploaded as attachment)
Erel B4X founder Staff member Licensed User Longtime User Mar 6, 2017 #4 You cannot use a JavaScript library with B4J. Upvote 0
PatrikCavina Active Member Licensed User Longtime User Mar 6, 2017 #5 Erel said: You cannot use a JavaScript library with B4J. Click to expand... In the folder, there are also .tlb, .resx and .h libraries. Can i use one of this extensions like a library? Or can i use jBasicLib to read js file? Upvote 0
Erel said: You cannot use a JavaScript library with B4J. Click to expand... In the folder, there are also .tlb, .resx and .h libraries. Can i use one of this extensions like a library? Or can i use jBasicLib to read js file?
alwaysbusy Expert Licensed User Longtime User Mar 6, 2017 #6 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> Upvote 0
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>
Erel B4X founder Staff member Licensed User Longtime User Mar 7, 2017 #7 alwaysbusy said: code in a document loaded event and use the loadurl of the webview component? Click to expand... It will be surprising if it will work but it is worth a try. PatrikCavina said: Can i use one of this extensions like a library? Or can i use jBasicLib to read js file? Click to expand... No and no. Upvote 0
alwaysbusy said: code in a document loaded event and use the loadurl of the webview component? Click to expand... It will be surprising if it will work but it is worth a try. PatrikCavina said: Can i use one of this extensions like a library? Or can i use jBasicLib to read js file? Click to expand... No and no.
PatrikCavina Active Member Licensed User Longtime User Mar 7, 2017 #8 alwaysbusy said: 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> Click to expand... I'll try your suggestion and i hope it works. Otherwise i'll try to use jshell to execute the print Upvote 0
alwaysbusy said: 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> Click to expand... I'll try your suggestion and i hope it works. Otherwise i'll try to use jshell to execute the print