Opening Browser Default Print Dialog

I’m looking to have it so users can preview an image that they have previously uploaded. Beside the preview there is a print button that I would like to open the browsers printing dialog so the user can print the image. The image is stored as a base64 string, Looking for some guidance with this.

Hi Ryan,

have a look at the ngclientutils plugin.
This plugin contains a printDocument function that can print url content using the browser print dialog.
The tooltip on this function has some code pointers.

Hope this helps

I’ve been trying to use that function from ngclientutils, the issue I’m having is it keeps returning this error and I cannot find any documentation for this error:

ERROR org.sablo.BrowserConsole - 9:28:29 ERROR ServicesService - trying to call a service api printDocument for service ngclientutils but the sevice ([object Object]) or the call was not found!
at SabloService.buildStackMessage (http://localhost:8183/default-src_ngcli … s:29297:15)
at Object.apply (http://localhost:8183/default-src_ngcli … s:29112:36)
at ServicesService.callServiceApi (http://localhost:8183/default-src_ngcli … s:29404:16)
at Object.handleNormalServiceApis (http://localhost:8183/default-src_ngcli … s:29375:34)
at WebsocketSession.handleMessage (http://localhost:8183/default-src_ngcli … s:30410:46)
at http://localhost:8183/default-src_ngcli … :30210:103
at _ZoneDelegate.invoke (http://localhost:8183/polyfills.js:500:158)
at Object.onInvoke (http://localhost:8183/vendor.js:42847:25)
at _ZoneDelegate.invoke (http://localhost:8183/polyfills.js:500:46)
at Zone.run (http://localhost:8183/polyfills.js:283:35)

Right, using from TiNG it fails, in NG client it works.
Have created a case: https://support.servoy.com/browse/SVY-18517