on 2021 Jan 18 1:57 PM
Hi Experts,
We have built an application based on SAP Mobile Development Kit.
And we have requirement to print a QR code to the printer after performing a goods movement transaction.
Can anyone please advise, what is the best practice for printing from SAP MDK?
Thank you.
Best Regards,
Hari Cahyadi
Request clarification before answering.
Additional info: we have added a sample app in the public GitHub for above requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Hari,
You can use a NS plugin nativescript-printer@1.5.0 to print the QR code, this requires you to build your custom MDK client including this NS plugin in the MDKProject.json file.
"Externals": ["nativescript-printer"],
"NSPlugins": ["nativescript-printer@1.5.0"],
This plugin to reference from a rule (JS) in your metadata. Check this sample snippet.
import {Printer} from"nativescript-printer";
//check if device supports printing using isSupported API
//access the QR code file (image/pdf/..) either from a local folder or client data and call respective print API to trigger print
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
21 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.