OpenAction support for printing

Fixes #4698