cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting desktop printer to ui5 application

SaranyaSampath
Participant
0 Kudos

Hi,

I am developing sap ui5 application. It's for Apple iPad. IN one screen having print option. So if user connected his ipad with desktop, that time it should access system printer. Is there any way to do it. Please help me on this.

With regards

Saranya

View Entire Topic
AndreasKunz
Advisor
Advisor
0 Kudos

Hi,

have you tried

https://developer.mozilla.org/en-US/docs/Web/API/Window/print ?

Of course you cannot really start the printing process from a web page, otherwise malicious web pages could start wasting paper and ink of victims.

Regards

Andreas

AndreasKunz
Advisor
Advisor
0 Kudos

Oh, and in case you create a hybrid app (with Cordova/PhoneGap or so), you should check their APIs for any exposed native printing functionality.

Regards

Andreas

SaranyaSampath
Participant
0 Kudos

I converted my ui5 app to hybrid app and installed  printer plugin using cordova by referring the following link

katzer/cordova-plugin-printer · GitHub

But while giving print, it's showing save As PDF, and All Printers in Samsung galaxy tab. How can we connect desktop printer to device? PLease help me on this. Attached some screenshot for reference .

With regards

Saranya

0 Kudos

Have you solved your problem?I got the same question. I need to print lable through UI5 APP in android device  by a printer.