The first thing you need to ensure is that you know the envelope size you will load into the printer and adjust the printer tray accordingly. Next, you must set up a print command for the same printer size. Look for an option called Page Setup or Printer Settings. Once you have seen the preview, and set the correct orientation, test a print and check if everything works as expected.