Reply
 
LinkBack Thread Tools Display Modes
Old 04-24-2011, 02:39 PM   #1 (permalink)
Member
 
Join Date: Apr 2011
Posts: 32
engcosta is on a distinguished road
Default how i can make the first letter of every word capital ???

how i can make the first letter of every word capital in my zone report???
engcosta is offline   Reply With Quote
Old 04-24-2011, 02:59 PM   #2 (permalink)
Member
 
Join Date: Apr 2011
Posts: 32
engcosta is on a distinguished road
Default

i made that script in the report format section and its work fine
Quote:
try
Dim txt As String = ReportUtilities.ReturnTextBoxValue(rpt,"GrpDynamic Header1","txtDynamicHeader1")
Dim newtxt As String = ""
Dim str As String() = txt.Split(" "C)
For Each s As String In str
Dim c As Char() = s.ToCharArray()
For i As Integer = 0 To c.Length - 1
If i = 0 Then
newtxt += c(i).ToString().ToUpper()
Else
newtxt += c(i).ToString().ToLower()
End If
Next
newtxt += " "
Next
ReportUtilities.SetTextBoxValue(rpt,"GrpDynamicHea der1","txtDynamicHeader1",newtxt)
catch
End try
engcosta is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:36 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
D-Tools, Inc.