Hi, good day!
Have you tried the steps below?
Open Notepad.
Click File > Page setup.
Under Orientation, select Portrait.
Click OK, then try printing again.
If the issue persists, could you let me know
Is this happening only in Notepad, or do other applications (such as Word or a web browser) also print in landscape?
What is the make and model of your printer?
Did this start after a recent Windows or Notepad update?
I look forward to receiving your update and I'm willing to collaborate with you till we resolve the issue. Do keep me informed by clicking "Add comment" below.