Hi,
Thanks for using the HP Support Community.
Can you download and install the FULL featured printer software from HP for your operating system :
HP Deskjet 2700
https://support.hp.com/us-en/drivers/selfservice/swdetails/hp-deskjet-2700-all-in-one-printer-series...
HP Deskjet Plus 4100
https://support.hp.com/us-en/drivers/selfservice/swdetails/hp-deskjet-plus-4100-all-in-one-series/29...
Do note and follow the video below for getting the HP FULL software.
This resource is for HP Deskjet Plus 4100 series, applicable for HP DeskJet 2700 series as well.
https://www.youtube.com/watch?v=x7Xj3EL0CIQ
The following resources will be useful for these printer models:
https://www.youtube.com/playlist?list=PLUV0sXfF6zPjcVOuuxj4SD-DOScj4xvlE
https://www.youtube.com/playlist?list=PLUV0sXfF6zPg2uqMt6xzQowix3LmJEgBG
If help is needed to get the printer connected to the network first, check out this resource:
https://www.youtube.com/watch?v=kRzEcKkwQlc
(you can also use an Android or iOS phone to connect printer to the network with HP Smart app)
Once you have downloaded and installed the FULL feature software, you will be able to print and scan.
Hope that helps.

I am an HP Employee
Although I am speaking for myself and not for HP.
Please click “Kudos Thumbs up” as an encouragement and “Accept as solution” if this has helped solved your problem.