Print preview cannot be inside the synchronization block in openNow