My VC++ app can't print in Windows 98 to a LaserJet printer... (but can to a Deskjet, or in in WinXP to both) (Value=235pts)
Posted on 2003-03-30
I have a weird problem and i hope anyone of you have met this problem before.
I have built an app that prints to a printer using the Windows context. It prints fine to all printers on WinXP, but on Win98 it won't work for our LaserJet at the company. I'm in BIG trouble now as i would need to test the app next week, but we can't without the printing working on that LaserJet.
I tried saving it to file and when the LaserJet is selected it gives some weird error text of only one line "%E%E X12345" or something (sorry i cant give exact line as i dont have win98 nor that printer here)
I looked it up and it is some PCL error code. In other words : in Windows 98 --> LaserJet 4plus my application sends the data to the printer driver, through windows 98 print setup, but somewhere it goes wrong and it returns only an error.
Does anyone know this problem, and know how to solve it? Some employee said there was a way around it, and gave me the Technet 2002 October CD but i can't find anything related on that cd.
PS: points will be increased by the 200pts i expect to get returned of a previously unanswered question.