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 

Grabbing only sentences in Word

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





PostPosted: Thu Sep 09, 2004 8:44 am    Post subject: Grabbing only sentences in Word Reply with quote



I have an application that processes a Word document replacing tags in the
document with data. I need to be able to process tables separately as
table-tags refer to a grid idiom ie rows/columns. I also need to iterate
through the sentences in the document.

My problem is that while I can properly iterate through the tables as there
is a table collection, I cannot iterate through the sentences alone,
ignoring the tables. The reason for this is that *every* cell in *every*
table is also a member of the sentences collection. While I can distinguish
a cell from a sentence (as it has a #7 cell marker at the end of it) this
enormously adds to processing time.

Does anyone know of a way to iterate only through sentences that are *not*
part of a table?

Many thanks
Richard Teller


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.