• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

Not C, but Clipper ???

How do I code in Printer Codes??  I have the codes, but don't know how to implement them to the program?????
0
connerb
Asked:
connerb
1 Solution
 
agreenCommented:
What do you mean by "Printer Codes" ? Control codes (escape sequences) ?
0
 
duneramCommented:
I used to write using clipper (back in '85) problem is I don't remember what the api's are that it offers.
0
 
connerbAuthor Commented:
I need to put in the printer command codes that change the format of the printer, like line spacing and lpi, the codes are=> ESC C 2767 1B43 and that is supposed to tell the printer to print 8 lines per inch.  But I do not know how to put them into clipper.  Maybe you know another way?
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
BonevCommented:
The escape sequences are just like any other text - the difference is the way the printer interpretes them.
Just print the codes as a text.

2767 is the decimal representation of ESC C.
1B43 is the hexadecimal.

0
 
duneramCommented:
I do remember clipper used to brag about including everything including the kitchen sink....
0
 
bsimserCommented:
Personally I think this is worth more than 25 points but here's your answer:

SET CONSOLE OFF
SET PRINT ON
?? chr(27)+"C"
SET PRINT OFF
SET CONSOLE ON

-Bil
0
 
connerbAuthor Commented:
thanks for the answer, I actually had it answered, you pretty much got it, i guess if points your after, i'll increase them.
thanks again....
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Protect Your Employees from Wi-Fi Threats

As Wi-Fi growth and popularity continues to climb, not everyone understands the risks that come with connecting to public Wi-Fi or even offering Wi-Fi to employees, visitors and guests. Download the resource kit to make sure your safe wherever business takes you!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now