mibuso.com

Microsoft Business Solutions online community
It is currently Sat May 18, 2013 3:23 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Padding or filler character rdlc
PostPosted: Mon Sep 27, 2010 5:24 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2863
Location: Bergamo
Country: Italy (it)
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


Attachments:
untitled.JPG
untitled.JPG [ 30.16 KiB | Viewed 1045 times ]

_________________
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Top
 Profile  
 
 Post subject: Re: Padding or filler character rdlc
PostPosted: Mon Sep 27, 2010 5:44 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Sep 04, 2008 8:34 pm
Posts: 310
Location: Copenhagen
Country: Denmark (dk)
What about using an image?

Regards,
Claus

_________________
Claus Lundstrøm | Senior Product Manager | Abakion.com
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav


Top
 Profile  
 
 Post subject: Re: Padding or filler character rdlc
PostPosted: Mon Sep 27, 2010 5:59 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2863
Location: Bergamo
Country: Italy (it)
:? ...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


Top
 Profile  
 
 Post subject: Re: Padding or filler character rdlc
PostPosted: Wed Jun 06, 2012 8:35 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Fri Jun 11, 2004 9:05 pm
Posts: 4856
Location: Los Angeles, CA
Country: United States (us)
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


Top
 Profile E-mail WWW  
 
 Post subject: Re: Padding or filler character rdlc
PostPosted: Thu Jun 07, 2012 8:37 am 
Offline
MVP Microsoft Dynamics NAV

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2863
Location: Bergamo
Country: Italy (it)
alex...this is 2 years old, and i already did:
Quote:
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


Top
 Profile  
 
 Post subject: Re: Padding or filler character rdlc
PostPosted: Thu Jun 07, 2012 5:57 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Sep 04, 2008 8:34 pm
Posts: 310
Location: Copenhagen
Country: Denmark (dk)
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:
Code: Select all
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:
Attachment:
Using PadRight.JPG
Using PadRight.JPG [ 158.3 KiB | Viewed 675 times ]

You can find this report here:
Here in TXT, FOB and PDF

/Claus Lundstrøm

_________________
Claus Lundstrøm | Senior Product Manager | Abakion.com
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav


Top
 Profile  
 
 Post subject: Re: Padding or filler character rdlc
PostPosted: Thu Jun 07, 2012 6:17 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2863
Location: Bergamo
Country: Italy (it)
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


Top
 Profile  
 
 Post subject: Re: Padding or filler character rdlc
PostPosted: Fri Jun 08, 2012 1:43 am 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Sep 04, 2008 8:34 pm
Posts: 310
Location: Copenhagen
Country: Denmark (dk)
Did I ever mention that I love Italian Red Wine, especially from the Bergamo region? :whistle:

/Claus Lundstrøm

_________________
Claus Lundstrøm | Senior Product Manager | Abakion.com
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav


Top
 Profile  
 
 Post subject: Re: Padding or filler character rdlc
PostPosted: Fri Jun 08, 2012 8:35 am 
Offline
MVP Microsoft Dynamics NAV

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2863
Location: Bergamo
Country: Italy (it)
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


Top
 Profile  
 
 Post subject: Re: Padding or filler character rdlc
PostPosted: Fri Jun 08, 2012 3:28 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Sep 04, 2008 8:34 pm
Posts: 310
Location: Copenhagen
Country: Denmark (dk)
Amazing, you can read my mind :D

/Claus Lundstrøm

_________________
Claus Lundstrøm | Senior Product Manager | Abakion.com
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: