john Lee
2006-12-08 01:05:00 UTC
Dear.
I made COM add-in module for word 2003 using VSTO in VS 2005.
wordDocument = applicationObject.Documents.Add(Template:=DotFileName)
applicationObject.ActiveDocument.Range(0, 1).InsertFile(filename)
wordDocument.SaveAs(filename)
Basically, the above processes are to load the templete file in current
document named(normally named by Word ) and to insertfile the doc file
selected by the user, and finally, to saveas the same filename for changing
the activedocument name.
The problem was occured in the large Doc file(100 or 150 pages over).
If the user selected file size is small(below about 70 pages), the process
is done well.
I am sure that while the Word is reading the user selected file for
insertfile command, saveas command can't be performed well.
Is there any way to get the Word task status, whether the insertfile task
has been finished or not?
Or is there any other way to perform this process?
Best reagards.
John
I made COM add-in module for word 2003 using VSTO in VS 2005.
wordDocument = applicationObject.Documents.Add(Template:=DotFileName)
applicationObject.ActiveDocument.Range(0, 1).InsertFile(filename)
wordDocument.SaveAs(filename)
Basically, the above processes are to load the templete file in current
document named(normally named by Word ) and to insertfile the doc file
selected by the user, and finally, to saveas the same filename for changing
the activedocument name.
The problem was occured in the large Doc file(100 or 150 pages over).
If the user selected file size is small(below about 70 pages), the process
is done well.
I am sure that while the Word is reading the user selected file for
insertfile command, saveas command can't be performed well.
Is there any way to get the Word task status, whether the insertfile task
has been finished or not?
Or is there any other way to perform this process?
Best reagards.
John