Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


How control print lenght between character in string

How control print lenght between character in string

I have to solve print strings of characters in specific formular with precizly spaces betwen two characters.

Space betwen two charasters is for example 1,9 mm and I must have exactly this space between char but when I put normal space " " is more than 2 mm. Number of character for one row is diferent for example from 5-50, depending of questions formular.

It's look like this    a b c d<---> e<--->f
                              1,9 mm 1,9 mm ....

I have clipper 5.01

I wold be very thankful if somebody can write me how control leng of space betwen characters in line

RE: How control print lenght between character in string

Few questions:
- What kind of printer are you using?
- Do you have a manual of that printer that lists the printer controlcodes?
- This sounds like you need a graphic(-like) output, are you using some kind of library for printing like Abee labs PageScript?


RE: How control print lenght between character in string

Hi TonHu
result must go on matrix printer for example EPSON LQ 1070+ OR EPSON LQ 300 or similary.....
At a moment I have no manual (mybi this can help ? )( Use ControlCodes for diferent print fonts ?? )
No I have no library for printing. Should I have and use it ? Where is possible get it ???
Aplication work under dos precizly under NOVEL.....

RE: How control print lenght between character in string

Exactly printer on which I must pint is Epson LQ 2080

RE: How control print lenght between character in string

No, no library is needed, but under other circumstances it could make life easier.
You should get (find on the internet, or get/buy/loan from the printer supplier) a manual with printercodes for this printer, and experiment with them, untill you get the required result. Big downfall on this solution will be that it is tied to this hardware (printer) and only compatible replacement can be used if it might fail or get worn out.

I would rethink the entire design, as dot-matrix printers are slowly disappearing, and laser and inkjet have taken over the (low-cost) market. These newer kind of printers can be easily printed on in high-res graphic quality, without (most) of the speed-loss you get when printing graphics on the dot-matrix printer.
In this case, a library would certainly help with an easy migration.


RE: How control print lenght between character in string

Thank You very much on idea TonHu. I think that this first can help. I will try.

They will not change this printer this time becaouse then they must change all software and other all formulars.

RE: How control print lenght between character in string


Something that may help is to look look at shareware program called DOSPRN.  Just do a google search on DOSPRN and give it a try.  It intercepts the basic output to LPT1 and retranslates it into a windows format.  I need it for talking to a few economical inkjet printers that do not accept ASCII input.  The advantage of DOSPRN is that you can choose your font size and type with the click of a button.  Now I have not used it with a dot matrix printer.  My experience has been that windows prints to dot matrix as a bitmap picture and is VERY SLOW. So you are forwarned. You may want to give it a try.

Jim Rumbaugh

RE: How control print lenght between character in string

Thank You too s good to know that....

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close