In the research, I found if we changed the port type of the printer from
"LPT1" to "COM1", then the problem disappeared and the printer could print
successfully.
You may change the port type in the "Control Panel -> Printer & Fax ->
Bitmap Printer (right-mouse-button click) -> Property -> Port".
I guess maybe this problem is caused by ports conflicting.
In addition, on another machine, which is XP SP2, the sample bitmap driver
works OK.
Could you please tell me why this happens? My Windows OS version is XP, SP3.
Thanks.