Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2006

Tip: Looking for answers? Try searching our database.

"Value out of range" COM exception

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jacky - 31 Jan 2006 08:05 GMT
I got this COM exception when running this code(in C#)

object startPos = (object)start;
object endPos = (object)end;
Word._Document doc = .... // all these have been initialized
doc.Range( ref start, ref end );

the last line gives me "Value out of range" exception if the endPos is
greater than doc.Content.End

How should i expand the document content to accommodate that?
Thanks in advance!
Cindy M  -WordMVP- - 31 Jan 2006 16:05 GMT
Replied to duplicate question in one of the office.developer groups.

> I got this COM exception when running this code(in C#)
>  
[quoted text clipped - 8 lines]
> How should i expand the document content to accommodate that?
> Thanks in advance!

Cindy Meister

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.