Exact position in sections (reports)

HenningTh
Member Posts: 59
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.
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
-
And a second textbox for YourVariable isn't an option?0
-
Unfortunately it would be very difficult to use the alternative with 2 textboxes as the content may vary quite a lot depending of conditions the code is obtaining during run.
It could be anything from 2 to 10 variabels that should be combined in one textbox.0 -
try something like
Combine Info1 + Info2 and calculate the strlen
based on the length add '' to string using PADSTR and add your variable at 65th position.0 -
Something like this: "SourceExpr": Info1 + Info2 + MyVariable
like SourceExpr": Info1 + Info2 +' '+MyVariable0 -
Thanks for suggestion Mohana, but it doesn't work.
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's0 -
What about using a non proportional font?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions