Click here to Skip to main content
15,905,875 members
Home / Discussions / C#
   

C#

 
QuestionRe: Create a .NET dll Pin
Tyler457-Jan-07 19:56
Tyler457-Jan-07 19:56 
AnswerRe: Create a .NET dll Pin
Christian Graus7-Jan-07 22:51
protectorChristian Graus7-Jan-07 22:51 
QuestionMaskedTextBox Pin
CodeItWell6-Jan-07 1:21
CodeItWell6-Jan-07 1:21 
AnswerRe: MaskedTextBox Pin
Tyler456-Jan-07 1:30
Tyler456-Jan-07 1:30 
QuestionForcing static implementation... Pin
Shy Agam6-Jan-07 1:14
Shy Agam6-Jan-07 1:14 
AnswerRe: Forcing static implementation... Pin
Ennis Ray Lynch, Jr.6-Jan-07 8:09
Ennis Ray Lynch, Jr.6-Jan-07 8:09 
AnswerRe: Forcing static implementation... Pin
Guffa6-Jan-07 9:11
Guffa6-Jan-07 9:11 
Questiongetting the line number of a sentence (word document) Pin
hofi19856-Jan-07 1:10
hofi19856-Jan-07 1:10 
hi all,

i try to scan a word document for a string and then to write the sentences containing this string to a new "result" document (also word). now, how do i get the line number of this sentence and how can i write each found sentence on a new line in my resultdocument?

i tried like this:

sentence.Find.Text = tofind;
bool present = docrange.Find.Execute(ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj,ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj,ref nullobj, ref nullobj);

//results is the the document for the found sentences
resrange = results.Range(ref nullobj, ref nullobj);

if (present == true)
{

--> here starts my problemSmile | :)
how can i get the line number of "sentence" (where i found it)? and how can i fill "resrange" line for line with the found sentences? InsertAfter isn't the right solution Unsure | :~ i think.

resrange.InsertAfter(sentence.Text);
}

thanks for help

hofi

QuestionIDeserializationCallback.OnDeserialization() not called Pin
dubbaluga6-Jan-07 1:06
dubbaluga6-Jan-07 1:06 
QuestionC# High School Project Pin
makemoneyfast6-Jan-07 1:01
makemoneyfast6-Jan-07 1:01 
AnswerRe: C# High School Project Pin
Cormac M Redmond6-Jan-07 1:19
Cormac M Redmond6-Jan-07 1:19 
GeneralRe: C# High School Project Pin
makemoneyfast6-Jan-07 1:33
makemoneyfast6-Jan-07 1:33 
GeneralRe: C# High School Project Pin
User 66586-Jan-07 4:03
User 66586-Jan-07 4:03 
GeneralRe: C# High School Project Pin
makemoneyfast6-Jan-07 4:49
makemoneyfast6-Jan-07 4:49 
GeneralRe: C# High School Project Pin
Cormac M Redmond6-Jan-07 9:00
Cormac M Redmond6-Jan-07 9:00 
AnswerDefinately ambitious Pin
Ennis Ray Lynch, Jr.6-Jan-07 8:14
Ennis Ray Lynch, Jr.6-Jan-07 8:14 
GeneralRe: Definately ambitious Pin
makemoneyfast6-Jan-07 10:28
makemoneyfast6-Jan-07 10:28 
GeneralI was assumming Pin
Ennis Ray Lynch, Jr.6-Jan-07 11:20
Ennis Ray Lynch, Jr.6-Jan-07 11:20 
GeneralRe: I was assumming Pin
makemoneyfast6-Jan-07 13:06
makemoneyfast6-Jan-07 13:06 
QuestionSimple interface question...Help!! Pin
Cormac M Redmond6-Jan-07 0:42
Cormac M Redmond6-Jan-07 0:42 
AnswerRe: Simple interface question...Help!! Pin
Shy Agam6-Jan-07 1:01
Shy Agam6-Jan-07 1:01 
GeneralRe: Simple interface question...Help!! Pin
Cormac M Redmond6-Jan-07 1:18
Cormac M Redmond6-Jan-07 1:18 
GeneralRe: Simple interface question...Help!! Pin
Shy Agam6-Jan-07 1:34
Shy Agam6-Jan-07 1:34 
GeneralRe: Simple interface question...Help!! Pin
Cormac M Redmond6-Jan-07 9:06
Cormac M Redmond6-Jan-07 9:06 
GeneralRe: Simple interface question...Help!! Pin
hofi19856-Jan-07 1:32
hofi19856-Jan-07 1:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.