-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Printers
- Printer Setup, Software & Drivers
- Printer prints landscape orientation as portrait

Create an account on the HP Community to personalize your profile and ask a question
02-19-2019 04:50 PM
Thank you for joining the HP Support Community
To provide you with an accurate solution, I'll need a few more details:
Is the copy working fine?
If the copy is working fine this could be an issue with the print settings.
Use this link: https://support.hp.com/us-en/product/hp-deskjet-2540-all-in-one-printer-series/5295960/document/c022... to change the print settings.
Keep me posted, how it goes!
If the information I've provided was helpful, give us some reinforcement by clicking the Accepted Solution and Kudos buttons, that'll help us and others see that we've got the answers!
Have a great day!
Cheers:)
Raj1788
I am an HP Employee
02-22-2019 06:20 PM
I recommend you delete the driver at the root level and Install the drivers, follow the steps below:
Remove the USB if connected
1.) In Windows, search for and open Programs and features
2.) Select your HP Printer
3.) Select Uninstall
4.) In Windows, search for and open Devices and printers
5.) In the Devices and Printers windows look for your HP printer. If you see it listed right-click on it and choose `Delete' or `Remove Device'
6.) Open up the run command with the "Windows key + R" key combo.
7.) Type printui.exe /s and click Ok. (Note: there is a space in between "printui.exe" and "/s")
8.) Click on the "Drivers" tab
9.) Look for HP Printer driver. If you see it Click on it and click Remove at the bottom
10.) Select Ok
11.) Select Apply and Ok on the Print Server Properties windows
12.) Close Devices and Printers
Then, Click on this link: https://support.hp.com/in-en/drivers/selfservice/hp-deskjet-2540-all-in-one-printer-series/5295960 and select the correct operating system to download and install the HP Deskjet 2540 All-in-One Printer series Full Feature Software and Drivers.
Try to print.
Keep me posted, how it goes!
If the information I've provided was helpful, give us some reinforcement by clicking the Accepted Solution and Kudos buttons, that'll help us and others see that we've got the answers!
Have a great day!
Cheers:)
Raj1788
I am an HP Employee