cancel
Showing results for 
Search instead for 
Did you mean: 

Printing from SAP MDK

haricahy1
Participant
0 Kudos
1,222

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert

Additional info: we have added a sample app in the public GitHub for above requirement.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

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