Hi all
Anyone having a good idea how to place a text in an exact position when printing.
It's a little "curly" because I have a large(long) textbox in which I want to add some information placed on an exact position on the paper.
Something like this: "SourceExpr": Info1 + Info2 + MyVariable
Info1 & and Info2 can vary in length but MyVariable must be placed at exactly pos. 65 on the paper. Giving that not alle letters are of same width it is somewhat a puzzle.
Thanks in advance.
0
Comments
It could be anything from 2 to 10 variabels that should be combined in one textbox.
Combine Info1 + Info2 and calculate the strlen
based on the length add '' to string using PADSTR and add your variable at 65th position.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
like SourceExpr": Info1 + Info2 +' '+MyVariable
If calculate strlen of info1 and info2 - say giving the result 40.
If adding 25 to this you should be on pos. 65 - correct, but on the line only - not guaranteed pos. 65 on paper as the line could have more 1's (which is a narrow char.) than 8's