Options

Padding or filler character rdlc

BeliasBelias Member Posts: 2,998
edited 2012-06-08 in NAV Three Tier
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
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog

Comments

  • Options
    clauslclausl Member Posts: 455
    What about using an image?

    Regards,
    Claus
    Claus 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 :-)
  • Options
    BeliasBelias Member Posts: 2,998
    :? ...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
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • Options
    Alex_ChowAlex_Chow Member Posts: 5,063
    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.
  • Options
    BeliasBelias Member Posts: 2,998
    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.)
    I was looking for a different solution, but if feel fin with the dashed border, I'll mark this post solved :)
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • Options
    clauslclausl Member Posts: 455
    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øm
    Claus 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 :-)
  • Options
    BeliasBelias Member Posts: 2,998
    Cool! thank you claus, nice one! i think you're going to made some of my days in the future with this one :wink:
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • Options
    clauslclausl Member Posts: 455
    Did I ever mention that I love Italian Red Wine, especially from the Bergamo region? :whistle:

    /Claus Lundstrøm
    Claus 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 :-)
  • Options
    BeliasBelias Member Posts: 2,998
    clausl wrote:
    Did I ever mention that I love Italian Red Wine, especially from the Bergamo region? :whistle:

    /Claus Lundstrøm
    this sounds like "can you send me a bottle of Valcalepio or Moscato di Scanzo"? :)
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • Options
    clauslclausl Member Posts: 455
    Amazing, you can read my mind :D

    /Claus Lundstrøm
    Claus 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 :-)
Sign In or Register to comment.