Click here to Skip to main content
14,769,076 members
Home » Discussions » Visual Basic
   

Visual Basic

 
GeneralRe: string manipulation Pin
Christian Graus29-Apr-07 18:28
protectorChristian Graus29-Apr-07 18:28 
AnswerRe: string manipulation Pin
Arun.Immanuel29-Apr-07 17:37
MemberArun.Immanuel29-Apr-07 17:37 
GeneralRe: string manipulation Pin
uglyeyes29-Apr-07 18:29
Memberuglyeyes29-Apr-07 18:29 
GeneralRe: string manipulation Pin
Arun.Immanuel29-Apr-07 19:14
MemberArun.Immanuel29-Apr-07 19:14 
GeneralRe: string manipulation Pin
Christian Graus29-Apr-07 19:31
protectorChristian Graus29-Apr-07 19:31 
GeneralRe: string manipulation Pin
Arun.Immanuel29-Apr-07 19:59
MemberArun.Immanuel29-Apr-07 19:59 
GeneralRe: string manipulation Pin
Arun.Immanuel29-Apr-07 20:15
MemberArun.Immanuel29-Apr-07 20:15 
GeneralRe: string manipulation Pin
uglyeyes1-May-07 19:48
Memberuglyeyes1-May-07 19:48 
Hi Many thanks but i came up with below code

---------------------------------
Dim ppItem As Microsoft.Office.Interop.PowerPoint.Shape
LOOP
Dim s As String = dr.Item(Strings.Right(Trim(ppItem.TextFrame.TextRange.Text), _
Len(Trim(ppItem.TextFrame.TextRange.Text)) - 1))
s = s.Trim

ppItem.TextFrame.TextRange.Text = s


'ppItem.TextFrame.TextRange.Text = s
'========================

Dim a, b, looplen As Integer
looplen = s.Length

Dim hashWords As String()

Dim strWord As String
For a = 0 To looplen - 1
If s.Substring(a, 1) = "#" Then
a += 1
For b = 1 To looplen - 1
If s.Substring(a, 1) = "#" Then
ppItem.TextFrame.TextRange.Text = strWord
ppItem.TextFrame.TextRange.Font.Bold = Microsoft.Office.Core.MsoTriState.msoCTrue
ppItem.TextFrame.TextRange.Text = s.ToString
MessageBox.Show(strWord)
'Microsoft.Office.Interop.PowerPoint = strWord
' PPSLide.Selection.Fond.Bold = True
strWord = ""

Exit For
End If
strWord += s.Substring(a, 1)
a += 1
Next
End If
Next
END LOOP

---------------------------

in above code, each dr value returns a text which is rendered to each textbox in powerpoint.
At a time it brings chunk of record for example

"#Headline#[linefeed]This is a headline.This headline is about #Book#".

now what my code does is bring only character that are between #. so i am having hard time rendering the text in powerpoint slide.

As you might notice:

ppItem.TextFrame.TextRange.Text = s [ it supplies all the strings to a text box, so i dont get the change to iterate through all the string and check #es and print the one with #es

could someone help please


QuestionSerialize WIndows Form Pin
milan.net29-Apr-07 9:57
Membermilan.net29-Apr-07 9:57 
AnswerRe: Serialize WIndows Form Pin
Christian Graus29-Apr-07 12:18
protectorChristian Graus29-Apr-07 12:18 
QuestionIf statment problem Pin
aerosmith2k129-Apr-07 8:39
Memberaerosmith2k129-Apr-07 8:39 
AnswerRe: If statment problem Pin
Christian Graus29-Apr-07 12:22
protectorChristian Graus29-Apr-07 12:22 
AnswerRe: If statment problem Pin
Navneet Hegde29-Apr-07 23:15
MemberNavneet Hegde29-Apr-07 23:15 
GeneralRe: If statment problem Pin
aerosmith2k130-Apr-07 2:51
Memberaerosmith2k130-Apr-07 2:51 
QuestionWindows Genuine Advantage (WGA) check in my own app Pin
sereby@gmail.com29-Apr-07 7:12
Membersereby@gmail.com29-Apr-07 7:12 
AnswerRe: Windows Genuine Advantage (WGA) check in my own app Pin
Dave Kreskowiak29-Apr-07 8:17
mveDave Kreskowiak29-Apr-07 8:17 
QuestionFunction does not return value on all code paths [modified] Pin
Pradeep Shamarao29-Apr-07 5:44
MemberPradeep Shamarao29-Apr-07 5:44 
AnswerRe: Function does not return value on all code paths Pin
kubben29-Apr-07 6:37
Memberkubben29-Apr-07 6:37 
GeneralRe: Function does not return value on all code paths Pin
Pradeep Shamarao29-Apr-07 21:01
MemberPradeep Shamarao29-Apr-07 21:01 
AnswerRe: Function does not return value on all code paths Pin
Guffa29-Apr-07 9:03
MemberGuffa29-Apr-07 9:03 
QuestionTooltip with a close button. Pin
udaykatakam28-Apr-07 20:34
Memberudaykatakam28-Apr-07 20:34 
AnswerRe: Tooltip with a close button. Pin
kubben29-Apr-07 3:28
Memberkubben29-Apr-07 3:28 
GeneralRe: Tooltip with a close button. Pin
udaykatakam29-Apr-07 18:27
Memberudaykatakam29-Apr-07 18:27 
GeneralRe: Tooltip with a close button. Pin
Christian Graus29-Apr-07 19:03
protectorChristian Graus29-Apr-07 19:03 
AnswerRe: Tooltip with a close button. Pin
Arun.Immanuel29-Apr-07 5:45
MemberArun.Immanuel29-Apr-07 5:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.