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!

How Do I Issue PCL Commands in Dbase Program

Status
Not open for further replies.

gee001

Programmer
Jul 31, 2002
26
ZM
My dbase IV applications used to use an Epson 2170 printer, where i could physically change the character spacing. I now must use an HP 5L.

 
Am I missing something?

Use HP codes instead of Epson Codes.

Jim Asman
 

But how do i code this in my dbase program ?

 
I'm not familiar with DBase, but can you not put PCL codes into variables on you output format? Does DBase not provide a mechanism to insert printer codes?

Jim Asman
 
I put the PCL commands in my dbase program using the CHR() functions. It is working fine for the Computer using Win2000 but the same program on another computer using Win98 fails to effect the PCL Commands.

Would You know why ??
 
It would seem to be a DBase issue. Can you route the printer output to a file?

Then run the same code on W98 & W2K and see what difference there may be in the output. Is the DBase run from DOS or from windows? If Windows, then I would assume the output is generated by a Windows printer driver. There could be differences in the printer drivers.

Jim Asman
 
You scaled down my problem to Drivers ! I switched off the printer connected to the computer with win98 then back on.
Run the program and it worked !

I quess i have to switch the printer off then back on again if i want to overide the printer settings.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top