int start = wordDoc.Paragraphs[st_para].Range.Start; int end = wordDoc.Paragraphs[ed_para].Range.End; Microsoft.Office.Interop.Word.Range r = wordDoc.Range(start, end); r.Select();
int start = wordDoc.StoryRanges....(Here i want to give the range like paragraph) int end = wordDoc.StoryRanges......(Here i want to give the range like paragraph) Microsoft.Office.Interop.Word.StoryRanges s = wordDoc.StoryRanges; Microsoft.Office.Interop.Word.Range r = s[WdStoryType.wdTextFrameStory]; //r.SetRange(start, end); r.Select(); while ((r = r.NextStoryRange) != null) { MessageBox.Show("text:"+r.Text); r.Select(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)