If you are using an LPT1 printer port , then the five input pins are already at +5 volts - they are held there by internal pull up resistors in the computer.
Your limit switches need to be wired in one of two ways. We will assume your limit switch is a micro switch which has normally open and normally closed contacts.
1. Your limit switch is wired with the input to the computer on the common terminal, and a 0v suppy on the NORMALLY OPEN terminal. A signal ground connection will do from the printer port. The machine comes down, hits the switch, the normally open contact closes, and puts 0v on the input to the computer. Your ports and pins should show ACTIVE LOW for this. (Green tick)
2. Your limit switch is wired with the input to the computer on the common terminal and a 0v supply on the NORMALLY CLOSED terminal. This means that 0v is input to the computer normally. Your machine hits the switch, the terminal opens, and the internal pull up resistor takes the input to 5v. Your ports and pins need to be active high - in other words active low has a red cross on.
The first method is simple, but the second method is prefered, especially if you have homing switches on as well. In this method, if the wire connecting your switch with the computer becomes detached, then the internal pull up resistors take the terminal to 5v and the limit switch trips, and lets you know there is a fault before you find out by running past a limit and hitting something.
Hope this gets you going.