To make this functionality you can use two buttons trick:
First button Print, onClick event should has this script: realPrintButton.execEvent("click").
Second button is invisble Print button.
So, when you click on your first button print validation is appear and real print will be executed.