Click here to Skip to main content
15,892,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Passing hIcons to WinAPI Pin
Dave Kreskowiak18-Mar-09 6:38
mveDave Kreskowiak18-Mar-09 6:38 
QuestionProcessing Very Large Lists Pin
Alan Burkhart17-Mar-09 12:15
Alan Burkhart17-Mar-09 12:15 
AnswerRe: Processing Very Large Lists Pin
Christian Graus17-Mar-09 12:22
protectorChristian Graus17-Mar-09 12:22 
AnswerRe: Processing Very Large Lists Pin
supercat917-Mar-09 12:56
supercat917-Mar-09 12:56 
AnswerRe: Processing Very Large Lists Pin
Alan Burkhart17-Mar-09 13:17
Alan Burkhart17-Mar-09 13:17 
AnswerRe: Processing Very Large Lists Pin
Luc Pattyn17-Mar-09 15:03
sitebuilderLuc Pattyn17-Mar-09 15:03 
GeneralRe: Processing Very Large Lists Pin
Alan Burkhart17-Mar-09 16:18
Alan Burkhart17-Mar-09 16:18 
QuestionMS Word Automation [modified] correct and/or add styles to an existing document using template ???? Pin
Amr M. K.17-Mar-09 12:08
Amr M. K.17-Mar-09 12:08 
Dear All
I ma using late binding to Done word parsing
I have word document i want to change the style of paragraphs using template docuemtn
For exmaple
Par(1) style ="This style 1"

Par(2) style ="This style 2"

My code :
Dim o_nullobject As Object = System.Reflection.Missing.Value

Dim o_filePath As Object = FilePath''file have paragraphs
Dim oTemplate As Object = TemplePath

Dim oFalse As Object = False
Dim oTrue As Object = True

wordApp = CreateObject("Word.Application")
doc = CreateObject("Word.Document")
alse, o_nullobject, o_nullobject)

doc = wordApp.Documents.Open(o_filePath, o_nullobject, oFalse, o_nullobject, o_nullobject, o_nullobject, o_nullobject, o_nullobject, o_nullobject, o_nullobject, o_nullobject, oFalse, o_nullobject, o_nullobject, o_nullobject, o_nullobject)

doc.Activate()
ParseWordStyle()

Private Sub ParseWordStyle()
Try


Dim i As Int64
'' Dim style As String
Dim parsText As String
''Dim p As Object = doc.Styles[""]
For i = 1 To doc.Paragraphs.Count
doc.Paragraphs(i).Range.Style ="some style".......
'''''''''''''''''''''''''''''''

my problem
How to set paragaphs text of styles from template

Yes. CreatiVity withOuT limiTs

modified on Wednesday, March 18, 2009 6:02 AM

Questionunable to get result back from unmanaged code Pin
Bjorn Tore17-Mar-09 11:32
Bjorn Tore17-Mar-09 11:32 
AnswerRe: unable to get result back from unmanaged code Pin
Christian Graus17-Mar-09 11:57
protectorChristian Graus17-Mar-09 11:57 
QuestionRestoring bac the server Pin
jishbalan17-Mar-09 6:35
jishbalan17-Mar-09 6:35 
AnswerRe: Restoring bac the server Pin
0x3c017-Mar-09 7:13
0x3c017-Mar-09 7:13 
QuestionChanging Audio Devices? Pin
SeeingBlue17-Mar-09 4:53
SeeingBlue17-Mar-09 4:53 
AnswerRe: Changing Audio Devices? Pin
dan!sh 17-Mar-09 5:14
professional dan!sh 17-Mar-09 5:14 
AnswerRe: Changing Audio Devices? Pin
Xmen Real 17-Mar-09 5:43
professional Xmen Real 17-Mar-09 5:43 
QuestionHow could you check a node in treeview whenever a child node gets checked? Pin
JUNEYT17-Mar-09 4:21
JUNEYT17-Mar-09 4:21 
AnswerRe: How could you check a node in treeview whenever a child node gets checked? Pin
Eddy Vluggen17-Mar-09 4:46
professionalEddy Vluggen17-Mar-09 4:46 
AnswerRe: How could you check a node in treeview whenever a child node gets checked? Pin
Xmen Real 17-Mar-09 6:29
professional Xmen Real 17-Mar-09 6:29 
QuestionWord.Application() not defined? Pin
Speedular17-Mar-09 4:00
Speedular17-Mar-09 4:00 
AnswerRe: Word.Application() not defined? Pin
dan!sh 17-Mar-09 5:03
professional dan!sh 17-Mar-09 5:03 
GeneralRe: Word.Application() not defined? Pin
Speedular17-Mar-09 5:17
Speedular17-Mar-09 5:17 
GeneralRe: Word.Application() not defined? Pin
dan!sh 17-Mar-09 5:21
professional dan!sh 17-Mar-09 5:21 
GeneralRe: Word.Application() not defined? Pin
Speedular17-Mar-09 5:47
Speedular17-Mar-09 5:47 
QuestionHow to use Font Pin
Anubhava Dimri17-Mar-09 2:39
Anubhava Dimri17-Mar-09 2:39 
AnswerRe: How to use Font Pin
Dave Kreskowiak17-Mar-09 3:37
mveDave Kreskowiak17-Mar-09 3:37 

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.