BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I determine the size of a Word document?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Stephen Craig
Guest





PostPosted: Tue Aug 16, 2005 9:58 am    Post subject: How can I determine the size of a Word document? Reply with quote



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





PostPosted: Tue Aug 16, 2005 7:18 pm    Post subject: Re: How can I determine the size of a Word document? Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.