D
David Thielen
Hi;
I call the following code:
object start = rangeStart; // = 249
object end = rangeEnd; // = 2851
Range range = app.ThisDocument.Range(ref start, ref end);
range.Find.ClearFormatting();
range.Find.Forward = forward;
range.Find.Text = text;
range.Find.Wrap = WdFindWrap.wdFindStop;
object missingValue = Type.Missing;
range.Find.Execute(ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue);
Returns:
Range.Find.Found = true
Range.Start = 237
Range.End = 241
The string I am looking for is there too - but it is before the start. What
is going on here?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
I call the following code:
object start = rangeStart; // = 249
object end = rangeEnd; // = 2851
Range range = app.ThisDocument.Range(ref start, ref end);
range.Find.ClearFormatting();
range.Find.Forward = forward;
range.Find.Text = text;
range.Find.Wrap = WdFindWrap.wdFindStop;
object missingValue = Type.Missing;
range.Find.Execute(ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue);
Returns:
Range.Find.Found = true
Range.Start = 237
Range.End = 241
The string I am looking for is there too - but it is before the start. What
is going on here?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm