default printer port name

I need sample code c# to get the default printer port name in order to restrict printing to other printers not connected to LPT1 port.

Tks, in advance...

Who is Participating?

Improve company productivity with a Business Account.Sign Up

Rahul AgarwalTeam LeaderCommented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.