How can I send output to LPT in C#.
I use SerialPort class. I set port name to “LPT1” and I’m getting this error.
The given port name does not start with COM/com or does not resolve to a valid serial port.
Parameter name: portName
What to do?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t use SerialPort to access a Parallel Port. This will require P/Invoke to
inpout32.dllto access. For details, see this tutorial.