So we want to invest in creating a print button that just calls javascript window.print(). Putting this in a customer interface component won't work, right? The interface component cannot access outside it's context.
What are other options? Deploying a servlet with print that takes in the url for the form? But then the form url has to be known each time and won't work for printing tasks, right?
Discussion posts and replies are publicly visible
Another possibility may be to use some sort of screen capturing API like chrome.desktopCapture to capture the task screen and then print the same?
Perhaps this will help you?
https://docs.appian.com/suite/help/21.3/reference-js-api.html