Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Not C, but Clipper ???

Posted on 1998-09-10
7
220 Views
Last Modified: 2010-04-15
How do I code in Printer Codes??  I have the codes, but don't know how to implement them to the program?????
0
Comment
Question by:connerb
7 Comments
 
LVL 4

Expert Comment

by:agreen
ID: 1252621
What do you mean by "Printer Codes" ? Control codes (escape sequences) ?
0
 
LVL 2

Expert Comment

by:duneram
ID: 1252622
I used to write using clipper (back in '85) problem is I don't remember what the api's are that it offers.
0
 

Author Comment

by:connerb
ID: 1252623
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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 1

Expert Comment

by:Bonev
ID: 1252624
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
 
LVL 2

Expert Comment

by:duneram
ID: 1252625
I do remember clipper used to brag about including everything including the kitchen sink....
0
 
LVL 1

Accepted Solution

by:
bsimser earned 50 total points
ID: 1252626
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
 

Author Comment

by:connerb
ID: 1252627
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

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

809 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