Automatically detect print mode