Padding or filler character rdlc

Belias
Member Posts: 2,998
hi everyone, i have to do a report which contains something like this:
_____________________
Signature: _ _ _ _ _ _ _ _ _ _
_____________________
but i couldn't find a way to achieve it simply. I worked around it by creating additional lines and make a dashed border (see screenshot.
is there a way to achieve this more simply, like padding "_ " to the textbox white space?
Thanks in advance
_____________________
Signature: _ _ _ _ _ _ _ _ _ _
_____________________
but i couldn't find a way to achieve it simply. I worked around it by creating additional lines and make a dashed border (see screenshot.
is there a way to achieve this more simply, like padding "_ " to the textbox white space?
Thanks in advance
0
Comments
-
What about using an image?
Regards,
ClausClaus Lundstrøm | MVP | Senior Product Manager | Continia.com
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)0 -
:? ...i think that a multiple body is better than an image.
I have some other textboxes that should have that special underline, and they all have a different lenght...I hoped for an easy padchar/leaderdots solution :-k0 -
Belias wrote::? ...i think that a multiple body is better than an image.
I have some other textboxes that should have that special underline, and they all have a different lenght...I hoped for an easy padchar/leaderdots solution :-k
You can do this by setting the BorderStyle properly and have the Bottom set as Solid.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
alex...this is 2 years old, and i already did:I worked around it by creating additional lines and make a dashed border (see screenshot.)0
-
Maybe you were looking for the possibility to pad extra characters in the end of a field.
You can do this with the PadRight method. Here is what you need to do:
1. Paste this code into the Code section of your report:Public Function MyPaddedString(ByVal Value As String) Return Value.PadRight(30,"_") End Function
The first paramter "30" is how many times PadRight will add an extra character minus the field lenght. So your field can be dynamic in size and PadRight will then just add the "_" until the text string is 30 charaters long.
2. Now add you field you want to enable the PadRight function on, like this: "=Code.MyPaddedString(Fields!Customer_Name.Value)"
3. Build, Save and Compile and your report will i.e. now look this:
You can find this report here:
Here in TXT, FOB and PDF
/Claus LundstrømClaus Lundstrøm | MVP | Senior Product Manager | Continia.com
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)0 -
Did I ever mention that I love Italian Red Wine, especially from the Bergamo region? :whistle:
/Claus LundstrømClaus Lundstrøm | MVP | Senior Product Manager | Continia.com
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)0 -
-
Amazing, you can read my mind
/Claus LundstrømClaus Lundstrøm | MVP | Senior Product Manager | Continia.com
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)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