Click here to Skip to main content
15,897,968 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionGeneral Programming Question Pin
Sigfried20-Apr-06 11:17
Sigfried20-Apr-06 11:17 
QuestionRunning as app on a pda Pin
dptalt20-Apr-06 9:18
dptalt20-Apr-06 9:18 
QuestionArray of an Object Pin
codeamin20-Apr-06 6:08
codeamin20-Apr-06 6:08 
AnswerRe: Array of an Object Pin
MohammadAmiry20-Apr-06 7:01
MohammadAmiry20-Apr-06 7:01 
GeneralRe: Array of an Object Pin
codeamin20-Apr-06 9:45
codeamin20-Apr-06 9:45 
GeneralRe: Array of an Object Pin
Qhalis20-Apr-06 14:59
Qhalis20-Apr-06 14:59 
AnswerRe: Array of an Object Pin
AhClem21-Apr-06 2:49
AhClem21-Apr-06 2:49 
QuestionMS Word app with VB Pin
codeamin20-Apr-06 5:59
codeamin20-Apr-06 5:59 
Hello there,

I am trying to perse a word document by reading the style property of each paragraphs. Here is what I have so far:
<br />
dim myDoc as new Document<br />
dim pp as Paragraph<br />
dim str as String<br />
<br />
myDoc = CType(GetObject("test.doc"), Document)<br />
for each kk in myDoc.Paragraphs<br />
  if Mid(kk.Style.ToString(),1,12) = "requirement" Then<br />
    str = kk.Range.Text<br />
    SaveData(str)<br />
  end if<br />
next kk<br />


"requirement" is a name of style I have created in the test document. In short how I can read the stylename for the paragraph? Can anyone please let me know what is wrong with this code.

Bashar Amin
Sr. Software Engineer

-- modified at 16:15 Thursday 20th April, 2006
QuestionPrinting Pin
aWaLsH52320-Apr-06 5:37
aWaLsH52320-Apr-06 5:37 
Questionfile parsing Pin
sadoo198220-Apr-06 5:22
sadoo198220-Apr-06 5:22 
Questionusing datagrid functionalities in osome other page Pin
harshsachdev20-Apr-06 5:14
harshsachdev20-Apr-06 5:14 
QuestionWriting code for a scanner that will use access cards Pin
matjame20-Apr-06 4:58
matjame20-Apr-06 4:58 
AnswerRe: Writing code for a scanner that will use access cards Pin
J4amieC20-Apr-06 5:57
J4amieC20-Apr-06 5:57 
Questionfull path ?? for graphic file Pin
Jirikub20-Apr-06 4:37
Jirikub20-Apr-06 4:37 
AnswerRe: full path ?? for graphic file Pin
J4amieC20-Apr-06 4:53
J4amieC20-Apr-06 4:53 
GeneralRe: full path ?? for graphic file Pin
Jirikub20-Apr-06 5:33
Jirikub20-Apr-06 5:33 
GeneralRe: full path ?? for graphic file Pin
J4amieC20-Apr-06 5:54
J4amieC20-Apr-06 5:54 
QuestionIs there any alternative for doevent Pin
Sushmadm20-Apr-06 4:27
Sushmadm20-Apr-06 4:27 
AnswerRe: Is there any alternative for doevent Pin
J4amieC20-Apr-06 4:51
J4amieC20-Apr-06 4:51 
GeneralRe: Is there any alternative for doevent Pin
Sushmadm24-Apr-06 20:07
Sushmadm24-Apr-06 20:07 
Questionupdate command Pin
neeraaj20-Apr-06 4:26
neeraaj20-Apr-06 4:26 
AnswerRe: update command Pin
J4amieC20-Apr-06 4:58
J4amieC20-Apr-06 4:58 
QuestionTime Trial software Pin
lindamaccarthy20-Apr-06 3:18
lindamaccarthy20-Apr-06 3:18 
AnswerRe: Time Trial software Pin
Eric Dahlvang20-Apr-06 4:03
Eric Dahlvang20-Apr-06 4:03 
QuestionActive Directory Pin
_tasleem20-Apr-06 3:02
_tasleem20-Apr-06 3:02 

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.