|
-
December 24th, 2001, 09:20 PM
#1
Read Text in a Paragraph of a MS Word file
Hi All,
Now, I can open a MS Word file, and get all Paragraphs in the Word file by:
Paragraphs Pgs= Doc.GetParagraphs();
long pgCount = Pgs.GetCount();
this code run OK.
but when I want to access on a Paragraph, I do as following:
Paragraph Pg=Pgs.Item(i); // i<pgCount
I get the Error: "The requested member of the collection does not exist".
I have been check the Paragraphs class, anh be sure that I see the Item(long) member.
Do any body know how to fic this error? or let me know how to get text of each paragraph.
in very urgent.
Thanks all
Khin Lau
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|