I am trying to access text messages on phone with it hooked up to computer with USB because I want to print them
There are apps available for this purpose. You can try Messages Print - SMS Print txt, SMS to Text and Print Text Messages among others.
These apps convert your text messages to text and you can then send the text files to your computer and print them.