You can use this to print the screen. There is the source in github, you can also customize to use in version 9
https://marketplace.mendix.com/link/component/27069
Another way is to use document template
https://marketplace.mendix.com/link/component/114043
https://marketplace.mendix.com/link/component/113389