S
shripathikamath
Here is the problem in a nutshell:
I launch Word thru automation.
I then populate tabular data into a document that I obtain from a
database
I format the data using the AutoFormat property off the table object
I save the document as an HTML file.
So, instead of saving it to an HTML file, I saved it to a DOC file.
Then, I see what the problem is -- the formatting has not been applied
(or completed) prior to saving the document. If I format it, or change
the formatting, I find that the data is correct.
I try this without automation, and what I find is that for a large
table, the data is populated first, and the formatting takes place
(likely) in the background, and takes some time to finish.
What is likely happening is that the save occurs before the formatting
has completed.
Any way to solve this problem, such that I can wait for some event or
some flag to be set before I initiate the save operation?
Are there properties in the Word object or its sub-objects that I can
set to achieve the desired result? Something along the lines of a
non-background formatting?
Any pointers would be a big help.
Thanks in advance.
I launch Word thru automation.
I then populate tabular data into a document that I obtain from a
database
I format the data using the AutoFormat property off the table object
I save the document as an HTML file.
missing.From what I can see, the HTML file is saved, but the data looks to be
So, instead of saving it to an HTML file, I saved it to a DOC file.
Then, I see what the problem is -- the formatting has not been applied
(or completed) prior to saving the document. If I format it, or change
the formatting, I find that the data is correct.
I try this without automation, and what I find is that for a large
table, the data is populated first, and the formatting takes place
(likely) in the background, and takes some time to finish.
What is likely happening is that the save occurs before the formatting
has completed.
Any way to solve this problem, such that I can wait for some event or
some flag to be set before I initiate the save operation?
Are there properties in the Word object or its sub-objects that I can
set to achieve the desired result? Something along the lines of a
non-background formatting?
Any pointers would be a big help.
Thanks in advance.