|And no problem showed in device manager?|
Most of what I could find indicated a driver or configuration problem. Try uninstalling the drivers and then reinstalling them.
What's the printer model number and how is it connected--USB or parallel port? I assume it's parallel since the error is at lpt1 but maybe that's the reason for the error.
It prints in dos because dos doesn't use complicated drivers or configuration--fewer things to get messed up.