Click here to Skip to main content
15,903,523 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using Word with C# Pin
Heath Stewart3-Jan-04 8:03
protectorHeath Stewart3-Jan-04 8:03 
GeneralRe: Using Word with C# Pin
Stephane David3-Jan-04 9:58
Stephane David3-Jan-04 9:58 
GeneralRe: Using Word with C# Pin
Nick Parker3-Jan-04 10:05
protectorNick Parker3-Jan-04 10:05 
GeneralRe: Using Word with C# Pin
Stephane David3-Jan-04 10:16
Stephane David3-Jan-04 10:16 
GeneralRe: Using Word with C# Pin
Heath Stewart3-Jan-04 10:58
protectorHeath Stewart3-Jan-04 10:58 
GeneralRe: Using Word with C# Pin
Stephane David3-Jan-04 19:00
Stephane David3-Jan-04 19:00 
GeneralRe: Using Word with C# Pin
Heath Stewart3-Jan-04 19:02
protectorHeath Stewart3-Jan-04 19:02 
GeneralRe: Using Word with C# Pin
Stephane David3-Jan-04 19:40
Stephane David3-Jan-04 19:40 
Arggh!!!! Mad | :mad:

I'm using this simple exemple directly from the article you linked for me. And it still doesn't work!!!
Would there be something else? Like not a simple parameter error, but perhaps a difference if I'm using Office XP or Windows XP?

// C#
internal void SelectionFind()
{
string strFind = "find me";
Word.Find fnd = ThisApplication.Selection.Find;
fnd.ClearFormatting();
fnd.Text = strFind;
object missingValue = Type.Missing;

if (fnd.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))
{
MessageBox.Show("Text found.");
}
else
{
MessageBox.Show("The text could not be located.");
}
}
GeneralRe: Using Word with C# Pin
Heath Stewart3-Jan-04 19:42
protectorHeath Stewart3-Jan-04 19:42 
GeneralRe: Using Word with C# Pin
Stephane David3-Jan-04 19:49
Stephane David3-Jan-04 19:49 
GeneralRe: Using Word with C# Pin
Stephane David8-Jan-04 11:04
Stephane David8-Jan-04 11:04 
GeneralDisabled toolbar images Pin
richjm3-Jan-04 2:47
richjm3-Jan-04 2:47 
GeneralRe: Disabled toolbar images Pin
Heath Stewart3-Jan-04 7:38
protectorHeath Stewart3-Jan-04 7:38 
Questionstart menu? Pin
warelord3-Jan-04 0:22
warelord3-Jan-04 0:22 
AnswerRe: start menu? Pin
leppie3-Jan-04 1:37
leppie3-Jan-04 1:37 
AnswerRe: start menu? Pin
Jan R Hansen3-Jan-04 1:37
Jan R Hansen3-Jan-04 1:37 
AnswerRe: start menu? Pin
Steve McLenithan3-Jan-04 6:50
Steve McLenithan3-Jan-04 6:50 
AnswerRe: start menu? Pin
Heath Stewart3-Jan-04 7:21
protectorHeath Stewart3-Jan-04 7:21 
GeneralSkins Pin
Agent 862-Jan-04 12:18
Agent 862-Jan-04 12:18 
GeneralRe: Skins Pin
Heath Stewart2-Jan-04 19:38
protectorHeath Stewart2-Jan-04 19:38 
GeneralRe: Skins Pin
Agent 862-Jan-04 20:06
Agent 862-Jan-04 20:06 
GeneralRe: Skins Pin
J. Dunlap2-Jan-04 20:34
J. Dunlap2-Jan-04 20:34 
GeneralRe: Skins Pin
Agent 863-Jan-04 5:22
Agent 863-Jan-04 5:22 
GeneralRe: Skins Pin
J. Dunlap3-Jan-04 17:16
J. Dunlap3-Jan-04 17:16 
GeneralImage on an MDI form Pin
Agent 862-Jan-04 12:08
Agent 862-Jan-04 12:08 

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.