generate message html for printer