Does you DOS program have its own HP printer driver or does this DOS program just print text?
If you print to an HP printer with the wrong printer driver, you may just get page after page of grabage printed.
If you are getting the correct 1st page, then the DOS program is sending a commmand to the HP printer, so the printer thinks it should be printing more than one page.
DOS printing is controlled by the DOS program! Anything the printer is doing is coming from the DOS program.
You did not say what program you are printing from.
To test a dos print, shutdown windows to the MS-DOS prompt.
Type copy con prn
Type a line of text and press the key.
Now type a CTRL L and then a CTRL Z
Press the key after the CTRL Z.
One page of what you typed should print on the printer.
If that printed ok, now run you DOS program and print.
This will tell your printer is working fine and you DOS program is not!