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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help me to convert printing in Foxpro!!! Thank you MUCH!!!

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have an application running written under Foxpro for Dos and running under MS-DOS.
Now my application is written to print A4 landscape with Epson LQ dot matrix printer.
Would you please help me?

Is there any way to print with HP laserjet 1100 printer A4 for the same result?
For example, is there any a converting driver that provides the same result to print with LQ dot matrix as HP laser jet printer?
Thank you very much!!!
 
Been a long time since I played with FP-DOS. So here goes from memory
In the FoxPro sub-directories there is a database called PDRIVERS or PRINTERS.
(do not remember the name of the file)
Find the printer manual that has the printer Escape codes in it.
Open that dbf and add a record for the HP 1100 printer.
Enter the codes in the correct fields
Close the database
select printer setup from the foxpro menu
select that printer
modify the report form
save the enviroment
If the codes you entered in thwe PDRIVERS file is correct, it should work.

David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
 
David,
Actually it's a bit more complicated than this. You need to make the additions/changes to the FONTS.DBF and P_CODES.DBF tables and then rebuild the GENPD.APP in the \FPD26\GOODIES\PDRIVERS\ directory. You'll obviously also need a good reference to PCL programming, available from HP or a 3rd party source.

Rick

 
I think you just want to put the printer into landscape?

you will have to add the following line at the top of the
report (header)

chr(13)+"&l1O" this will put it into landscape mode
(Lower case "l", and "1" one and upper "O")



and at the bottom (footer) put chr(13)+"&l0O" to put it back into portrait (Lower case "l", and "0" Zero and upper "O")

I hope this helps

Zim
 
Rick,
Like I said It has been a long time since I played with DOS. When you mentioned the FONTS and P_CODES tables memories started coming back of something I did not want to go do again. David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top