Changing invoice size/ orientation

When I print an invoice it is printing long (landscape). I want to change orientation to portrait. How can I do this?

Assuming you are printing using the Print button, and not trying to generate a PDF or something first, this is a function of settings in your operating system’s print dialog box.

so the page layout is not a function of the program?

Not the portrait versus landscape aspect of layout.