Concatenation of Word Documents

S

Srinvias Vikram

hai,

I am doing concatiction of Word Documents. I did it using the steps
selection,Copy, and paste through C# programming.
If the documents are more it's takes more time.
Is there any other solution for concatination of word documents.
I really Appreciate your help.

Regards,
srinvias vikram
 
J

Jonathan West

Srinvias Vikram said:
hai,

I am doing concatiction of Word Documents. I did it using the steps
selection,Copy, and paste through C# programming.
If the documents are more it's takes more time.
Is there any other solution for concatination of word documents.
I really Appreciate your help.

You could use the InsertFile method, or you could use the FormattedText
property. Code samples for both are given in the Word VBA Help file, and you
should have no trouble adapting them to C#
 
H

Helmut Weber

Hi Srinvias,
one of many ways, but I think, a pretty fast one:
Dim l As Long
Dim oRng As Range
With Application.FileSearch
.NewSearch
.FileName = "*.doc"
.LookIn = "c:\test\"
.Execute
For l = 1 To .FoundFiles.Count
Set oRng = ActiveDocument.Range
oRng.Collapse direction:=wdCollapseEnd
oRng.InsertFile _
FileName:=.FoundFiles(l)
Next
End With
 
R

Robert M. Franz (RMF)

Srinvias said:
I am doing concatiction of Word Documents. I did it using the steps
selection,Copy, and paste through C# programming.
If the documents are more it's takes more time.
Is there any other solution for concatination of word documents.
I really Appreciate your help.

One INCLUDETEXT field for each document and then a break-link command,
maybe?

0.2cents
..bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top