Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dear Programmers, I need to know

Status
Not open for further replies.

marcfree

Programmer
Jul 4, 2002
31
BR
Dear Programmers,

I need to know where fpw function prtinfo()looks for information. When I use HP 3420 as a default printer, I can't printer anything because I always get the error msg in hpz9xd05.drv. If I use prtinfo(2) I get -1 as the result. It seems that fpw can't find the paper size. Any help?
 
Are you running under Win 3.x? This is all FPW was designed for and tested under. Many commands don't work or work the same in the "emulated" 16-bit OS mode of Win 9x or NT/2000/XP.

Rick
 
Thank you Rick,

I'm running my application on win 98/ME/XP/NT/2000 and it works fine on with all printers on XP/NT/2000. Even in 98/ME it works fine with epsons, canon etc. The problem is with most of 4 digit HP models. It's driving me crazy because my clients can't print their reports...
 
Have you tried installing a printer driver designed for a simpler, earlier printer? It may not give you access to all the bells and whistles the newer model may have, but as long as you don't try anything fancy, there are a few drivers regarded as generic good-for-any-model. There may be better all-around drivers, but I seem to recall that the HP 4P driver was a nice basic one. Been a while, so I'm guessing. You can try the HP printers forum697 too.
 
I guess it would depend on the Printer Driver in use. Perhaps an update to the driver might help - or maybe a "downgrade" may be necessary. I know that under the newer OS's the drivers use an different format, and FPW's underlying API call(s) may not be able to access this information. With a downgraded driver (e.g. LJ II), they may lose some of the unique capabilities of the actual printer, but at least it might offer the data your application requires.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top