pradiptab:
Like in javascript, window.print() opens the print dialog, to print the current html page. There should be some way to print from web client.
If you have any workaround, please share.
Indeed, that’s the only thing you can do in a browser, to print the content of the html you see.
The only thing your in control of inside Servoy, is printing to pdf, and serve that as a file, to the browser-client.
The trick is to roll pdf.js into web client and pass it a pdf (as byte array). You can’t specify a printer via code but the user does get the system print dialog.
Data Sutra has all this built in. API here: http://community.data-sutra.com/project … PI#DSprint. Note helper methods for getting PDFByteArray’s from Servoy form, html, url, file system resource, and media location resource.