Solved

foxpro ???printer commands

Posted on 1998-06-11
1
1,145 Views
Last Modified: 2013-12-23
I am having trouble with initialization commands to the printer for FOXPRO2.5 DOS report forms.  
the commands are preceeded with the "???" send directly to printer.  We are using a HPlj4 printer and an Epson dot matrix printer.  The user has the option of selecting the printer.  A typical printer commands reads:
??? CHR(27) + "(S16.6H0B"   && courier-condensed print
??? CHR(27) + "&L10"        && Landscape
or
??? CHR(27) + "&L0O"        && portrait
What is happening is I still get landscape when I request portrait or vice versa.  Our system does not let the individual operator to use the Foxpro Printer Setup.
0
Comment
Question by:finleyjc
1 Comment
 
LVL 37

Accepted Solution

by:
Bing CISM / CISSP earned 100 total points
ID: 1564222
Foxpro for DOS has built-in print setup with a printer setting profile, you may custom this file in order to print document with your printer. AFAIK, HPLJ is supported with its default printer list.

With this way, you dont need to manually put printer commands to print port, just sepecify what printer profile you need. All the settings such as Lanscape and others all are included in the profile settings.
0

Featured Post

Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Sometimes you might need to configure routing based not only on destination IP address, but also on a combination of destination IP address (or hostname) and destination port number. I will describe a method how to accomplish this with free tools. …
A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question