Discussion:
How can I get the word 2003 task status?
(too old to reply)
john Lee
2006-12-08 01:05:00 UTC
Permalink
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
Perry
2007-01-17 18:44:12 UTC
Permalink
Even in them good ole VB com (pre dotnet) days, it'd take heavy API calls to
get
the progress status (progress bar) in Word visible.

I haven't come across anyone who as figured out a way to do this in VSTO ...
You'll have to ask around in the VSTO newsgroups ...

Krgrds,
Perry
Post by john Lee
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
Loading...