Click here to Skip to main content
15,844,009 members
Home / Discussions / C#
   

C#

 
QuestionAdding Data to liststore(gtksharp) Pin
bugg_tb19-Apr-07 3:15
bugg_tb19-Apr-07 3:15 
QuestionExporting PKT attribute from Active Directory using C# Pin
joshg9919-Apr-07 3:04
joshg9919-Apr-07 3:04 
QuestionProblem launching email client Pin
George_Lucian19-Apr-07 2:55
George_Lucian19-Apr-07 2:55 
AnswerRe: Problem launching email client Pin
althamda19-Apr-07 5:30
althamda19-Apr-07 5:30 
GeneralRe: Problem launching email client Pin
George_Lucian19-Apr-07 6:03
George_Lucian19-Apr-07 6:03 
QuestionSending Bulk Mail using C# Pin
shrikantpawar19-Apr-07 2:26
shrikantpawar19-Apr-07 2:26 
AnswerRe: Sending Bulk Mail using C# Pin
Judah Gabriel Himango19-Apr-07 5:20
sponsorJudah Gabriel Himango19-Apr-07 5:20 
QuestionProblem of counting words from files [modified] Pin
Abhishek Joshi19-Apr-07 2:25
Abhishek Joshi19-Apr-07 2:25 
Hi,
I am facing problem of counting words for .doc or .txt files.
I am using following methods ,
1.
aDoc = wordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing, ref missing);
aDoc.Activate();
aDoc.Select();
int WCnt = aDoc.Content.Words.Count;

2.
 aDoc = wordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing, ref missing);
aDoc.Activate();
aDoc.Select(); 
string ToCount = aDoc.Content.Text; 
int RCount = ToCount.Split('\r').Length;
int WCnt = ToCount.Split(' ').Length + RCount;

Still it is not counting words properly.
Please tell me proper method to count the words in .doc or .txt file correctly.


#Abhi#

QuestionIs there any open source tool like Castor(for java) for .NET Pin
Gokulan Venattil19-Apr-07 2:24
Gokulan Venattil19-Apr-07 2:24 
AnswerRe: Is there any open source tool like Castor(for java) for .NET Pin
Judah Gabriel Himango19-Apr-07 5:19
sponsorJudah Gabriel Himango19-Apr-07 5:19 
QuestionObjectDataSource passing an empty object to the BLL when deleting Pin
Ricardo Casquete19-Apr-07 2:10
Ricardo Casquete19-Apr-07 2:10 
QuestionGet a list of resources in Outlook style control Pin
Kapil Singhal19-Apr-07 1:23
Kapil Singhal19-Apr-07 1:23 
AnswerRe: Get a list of resources in Outlook style control Pin
Christian Graus19-Apr-07 1:42
protectorChristian Graus19-Apr-07 1:42 
GeneralRe: Get a list of resources in Outlook style control Pin
Kapil Singhal19-Apr-07 1:53
Kapil Singhal19-Apr-07 1:53 
QuestionHow to serialize a C# class [modified] Pin
mail57235219-Apr-07 1:16
mail57235219-Apr-07 1:16 
AnswerRe: How to serialize a C# class Pin
vamsimohan2119-Apr-07 2:58
vamsimohan2119-Apr-07 2:58 
AnswerRe: How to serialize a C# class Pin
peterchen19-Apr-07 8:24
peterchen19-Apr-07 8:24 
QuestionGetting ListView Header Text Pin
Farhan Ali19-Apr-07 0:50
Farhan Ali19-Apr-07 0:50 
AnswerRe: Getting ListView Header Text Pin
Svetlin Panayotov19-Apr-07 1:00
Svetlin Panayotov19-Apr-07 1:00 
GeneralRe: Getting ListView Header Text Pin
Farhan Ali19-Apr-07 1:04
Farhan Ali19-Apr-07 1:04 
GeneralRe: Getting ListView Header Text Pin
Svetlin Panayotov19-Apr-07 5:45
Svetlin Panayotov19-Apr-07 5:45 
GeneralRe: Getting ListView Header Text Pin
Farhan Ali19-Apr-07 21:35
Farhan Ali19-Apr-07 21:35 
GeneralRe: Error in Webservice while using datatable Pin
sujithkumarsl19-Apr-07 0:44
sujithkumarsl19-Apr-07 0:44 
QuestionImporting of resources data for Visual Studio 2005 Pin
sfk_ers19-Apr-07 0:38
sfk_ers19-Apr-07 0:38 
QuestionDifference please..... Pin
Uday_Smile19-Apr-07 0:36
Uday_Smile19-Apr-07 0:36 

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.