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 

Word StoryRanges

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





PostPosted: Wed Jun 25, 2003 6:28 pm    Post subject: Word StoryRanges Reply with quote




Hi,

Can anyone tell me what I do wrong that the system raise an exception.

var
loleCount : OleVariant;
lRange : Range;
begin
for lCount := 1 to ActiveDocument.StoryRanges.Count do
begin
lRange := ActiveDocument.StoryRanges.Item(lCount);
end;
end;

if I do
loleCount := ActiveDocument.StoryRanges.Count it returns 4 (in my case),
lRange gets set ok when lCount = 1 but raises exception afterwards.

regards




Back to top
AZ
Guest





PostPosted: Thu Jun 26, 2003 7:09 am    Post subject: Re: Word StoryRanges Reply with quote



Sorted, there had been queries raised and are in the archieve (if anyone
intrested).

regards

"AZ" <xtcsuk (AT) yahoo (DOT) co.uk> wrote

Quote:

Hi,

Can anyone tell me what I do wrong that the system raise an exception.

var
loleCount : OleVariant;
lRange : Range;
begin
for lCount := 1 to ActiveDocument.StoryRanges.Count do
begin
lRange := ActiveDocument.StoryRanges.Item(lCount);
end;
end;

if I do
loleCount := ActiveDocument.StoryRanges.Count it returns 4 (in my case),
lRange gets set ok when lCount = 1 but raises exception afterwards.

regards







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.