Click here to Skip to main content
15,894,539 members
Home / Discussions / C#
   

C#

 
QuestionAdding Data to liststore(gtksharp) Pin
bugg_tb19-Apr-07 2:15
bugg_tb19-Apr-07 2:15 
QuestionExporting PKT attribute from Active Directory using C# Pin
joshg9919-Apr-07 2:04
joshg9919-Apr-07 2:04 
QuestionProblem launching email client Pin
George_Lucian19-Apr-07 1:55
George_Lucian19-Apr-07 1:55 
AnswerRe: Problem launching email client Pin
althamda19-Apr-07 4:30
althamda19-Apr-07 4:30 
GeneralRe: Problem launching email client Pin
George_Lucian19-Apr-07 5:03
George_Lucian19-Apr-07 5:03 
QuestionSending Bulk Mail using C# Pin
shrikantpawar19-Apr-07 1:26
shrikantpawar19-Apr-07 1:26 
AnswerRe: Sending Bulk Mail using C# Pin
Judah Gabriel Himango19-Apr-07 4:20
sponsorJudah Gabriel Himango19-Apr-07 4:20 
QuestionProblem of counting words from files [modified] Pin
Abhishek Joshi19-Apr-07 1:25
Abhishek Joshi19-Apr-07 1: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 1:24
Gokulan Venattil19-Apr-07 1:24 
AnswerRe: Is there any open source tool like Castor(for java) for .NET Pin
Judah Gabriel Himango19-Apr-07 4:19
sponsorJudah Gabriel Himango19-Apr-07 4:19 
QuestionObjectDataSource passing an empty object to the BLL when deleting Pin
Ricardo Casquete19-Apr-07 1:10
Ricardo Casquete19-Apr-07 1:10 
QuestionGet a list of resources in Outlook style control Pin
Kapil Singhal19-Apr-07 0:23
Kapil Singhal19-Apr-07 0:23 
AnswerRe: Get a list of resources in Outlook style control Pin
Christian Graus19-Apr-07 0:42
protectorChristian Graus19-Apr-07 0:42 
GeneralRe: Get a list of resources in Outlook style control Pin
Kapil Singhal19-Apr-07 0:53
Kapil Singhal19-Apr-07 0:53 
QuestionHow to serialize a C# class [modified] Pin
mail57235219-Apr-07 0:16
mail57235219-Apr-07 0:16 
AnswerRe: How to serialize a C# class Pin
vamsimohan2119-Apr-07 1:58
vamsimohan2119-Apr-07 1:58 
AnswerRe: How to serialize a C# class Pin
peterchen19-Apr-07 7:24
peterchen19-Apr-07 7:24 
QuestionGetting ListView Header Text Pin
Farhan Ali18-Apr-07 23:50
Farhan Ali18-Apr-07 23:50 
AnswerRe: Getting ListView Header Text Pin
Svetlin Panayotov19-Apr-07 0:00
Svetlin Panayotov19-Apr-07 0:00 
GeneralRe: Getting ListView Header Text Pin
Farhan Ali19-Apr-07 0:04
Farhan Ali19-Apr-07 0:04 
GeneralRe: Getting ListView Header Text Pin
Svetlin Panayotov19-Apr-07 4:45
Svetlin Panayotov19-Apr-07 4:45 
GeneralRe: Getting ListView Header Text Pin
Farhan Ali19-Apr-07 20:35
Farhan Ali19-Apr-07 20:35 
GeneralRe: Error in Webservice while using datatable Pin
sujithkumarsl18-Apr-07 23:44
sujithkumarsl18-Apr-07 23:44 
QuestionImporting of resources data for Visual Studio 2005 Pin
sfk_ers18-Apr-07 23:38
sfk_ers18-Apr-07 23:38 
QuestionDifference please..... Pin
Uday_Smile18-Apr-07 23:36
Uday_Smile18-Apr-07 23: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.