 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Stephen Craig Guest
|
Posted: Tue Aug 16, 2005 9:58 am Post subject: How can I determine the size of a Word document? |
|
|
Hi
I'm building a word document thru automation by cutting and pasting
paragraphs and objects from other Word Documents. All goes well, however
sometimes things fall over because the destination word document just gets
too big.
My solution to this problem will be to spread the result over many
destination documents and this suites my needs perfectly.
My problem is, during automation, how do I find the size of a word document
at any instant so that I can determine if it's time to save the current
document and start a new one.
Thanks ...
Steve
|
|
| Back to top |
|
 |
Patrick Guest
|
Posted: Tue Aug 16, 2005 7:18 pm Post subject: Re: How can I determine the size of a Word document? |
|
|
| Quote: | My problem is, during automation, how do I find the size of a word
document
at any instant so that I can determine if it's time to save the current
document and start a new one.
I do not know if this will work, but according to Word's object browser, |
there is a 'Number of Bytes' DocumentProperty object. You can get to the
object by Document.BuiltinDocumentProperties(index) where index is a number
or the name of the property. See MS Visual Basic Help.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|