Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
Questionusing toupper to uppercase an array index Pin
doughyi8u4-Oct-15 6:32
doughyi8u4-Oct-15 6:32 
AnswerRe: using toupper to uppercase an array index Pin
OriginalGriff4-Oct-15 6:39
mveOriginalGriff4-Oct-15 6:39 
GeneralRe: using toupper to uppercase an array index Pin
Agent__0074-Oct-15 17:58
professionalAgent__0074-Oct-15 17:58 
AnswerRe: using toupper to uppercase an array index Pin
Gerry Schmitz4-Oct-15 11:32
mveGerry Schmitz4-Oct-15 11:32 
AnswerRe: using toupper to uppercase an array index Pin
PANKAJMAURYA12-Oct-15 20:59
professionalPANKAJMAURYA12-Oct-15 20:59 
QuestionC# find a string in a 2010 Microsoft Word document Pin
Member 120318994-Oct-15 6:08
Member 120318994-Oct-15 6:08 
AnswerRe: C# find a string in a 2010 Microsoft Word document Pin
Ravi Bhavnani4-Oct-15 6:09
professionalRavi Bhavnani4-Oct-15 6:09 
GeneralRe: C# find a string in a 2010 Microsoft Word document Pin
Member 120318994-Oct-15 6:48
Member 120318994-Oct-15 6:48 
I found this code for a word count, but I want to loop pages and search the header, body, and footer.


using System;
using Microsoft.Office.Interop.Word;

class Program
{
static void Main()
{
// Open a doc file.
Application application = new Application();
Document document = application.Documents.Open("C:\\word.doc");

// Loop through all words in the document.
int count = document.Words.Count;
for (int i = 1; i <= count; i++)
{
// Write the word.
string text = document.Words[i].Text;
Console.WriteLine("Word {0} = {1}", i, text);
}
// Close word.
application.Quit();
}
}
GeneralRe: C# find a string in a 2010 Microsoft Word document Pin
Pete O'Hanlon5-Oct-15 4:53
mvePete O'Hanlon5-Oct-15 4:53 
RantProgramming Pin
Member 115145063-Oct-15 14:59
Member 115145063-Oct-15 14:59 
GeneralRe: Programming Pin
BillWoodruff3-Oct-15 16:43
professionalBillWoodruff3-Oct-15 16:43 
GeneralRe: Programming Pin
OriginalGriff3-Oct-15 21:38
mveOriginalGriff3-Oct-15 21:38 
GeneralRe: Programming Pin
Gerry Schmitz4-Oct-15 12:17
mveGerry Schmitz4-Oct-15 12:17 
GeneralRe: Programming Pin
BillWoodruff4-Oct-15 18:33
professionalBillWoodruff4-Oct-15 18:33 
GeneralRe: Programming Pin
JBargisen8-Oct-15 22:10
JBargisen8-Oct-15 22:10 
QuestionShell Sort Algorithm question Pin
Member 117609771-Oct-15 15:19
Member 117609771-Oct-15 15:19 
AnswerRe: Shell Sort Algorithm question Pin
BillWoodruff1-Oct-15 20:24
professionalBillWoodruff1-Oct-15 20:24 
AnswerRe: Shell Sort Algorithm question Pin
Richard Deeming2-Oct-15 1:40
mveRichard Deeming2-Oct-15 1:40 
QuestionMessage Removed Pin
1-Oct-15 2:45
Member 103698471-Oct-15 2:45 
QuestionCreate a Collection in C# Pin
macca241-Oct-15 1:27
macca241-Oct-15 1:27 
AnswerRe: Create a Collection in C# Pin
OriginalGriff1-Oct-15 1:42
mveOriginalGriff1-Oct-15 1:42 
GeneralRe: Create a Collection in C# Pin
macca241-Oct-15 1:46
macca241-Oct-15 1:46 
GeneralRe: Create a Collection in C# Pin
OriginalGriff1-Oct-15 1:53
mveOriginalGriff1-Oct-15 1:53 
GeneralRe: Create a Collection in C# Pin
macca241-Oct-15 2:32
macca241-Oct-15 2:32 
GeneralRe: Create a Collection in C# Pin
OriginalGriff1-Oct-15 3:56
mveOriginalGriff1-Oct-15 3:56 

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.