Click here to Skip to main content
15,893,161 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionExport Datagrid to Excel file Pin
ADY00715-Apr-07 21:49
ADY00715-Apr-07 21:49 
AnswerRe: Export Datagrid to Excel file Pin
M A A Mehedi Hasan15-Apr-07 23:14
M A A Mehedi Hasan15-Apr-07 23:14 
GeneralRe: Export Datagrid to Excel file Pin
ADY00716-Apr-07 0:28
ADY00716-Apr-07 0:28 
QuestionServer IP Pin
vengaqua15-Apr-07 21:32
vengaqua15-Apr-07 21:32 
AnswerRe: Server IP Pin
N a v a n e e t h15-Apr-07 22:45
N a v a n e e t h15-Apr-07 22:45 
GeneralRe: Server IP Pin
vengaqua15-Apr-07 22:55
vengaqua15-Apr-07 22:55 
AnswerRe: Server IP Pin
TRK@UK16-Apr-07 4:01
TRK@UK16-Apr-07 4:01 
QuestionHow to count Words fom .doc or .txt files? Pin
Abhishek Joshi15-Apr-07 21:01
Abhishek Joshi15-Apr-07 21:01 
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.
Confused | :confused:

#Abhi#

Questionhow to set default font style? Pin
neodeaths15-Apr-07 20:59
neodeaths15-Apr-07 20:59 
Questioncrystalreportviewer1.displaygrouptree=true not working Pin
MissionSuccess15-Apr-07 20:31
MissionSuccess15-Apr-07 20:31 
Questionresponse page for http request Pin
Mohammad Daba'an15-Apr-07 20:14
Mohammad Daba'an15-Apr-07 20:14 
AnswerRe: response page for http request Pin
N a v a n e e t h15-Apr-07 22:48
N a v a n e e t h15-Apr-07 22:48 
GeneralRe: response page for http request Pin
Mohammad Daba'an15-Apr-07 23:49
Mohammad Daba'an15-Apr-07 23:49 
QuestionProblem with ajax timer [modified] Pin
Smitha Appukuttan15-Apr-07 20:00
Smitha Appukuttan15-Apr-07 20:00 
QuestionError! Pin
nclauder15-Apr-07 19:45
nclauder15-Apr-07 19:45 
AnswerRe: Error! Pin
Faisal Khatri15-Apr-07 20:56
Faisal Khatri15-Apr-07 20:56 
GeneralRe: Error! Pin
nclauder15-Apr-07 23:38
nclauder15-Apr-07 23:38 
QuestionPlease Help me soon Urgent Pin
Mkanchha15-Apr-07 19:35
Mkanchha15-Apr-07 19:35 
AnswerRe: Please Help me soon Urgent Pin
N a v a n e e t h15-Apr-07 22:51
N a v a n e e t h15-Apr-07 22:51 
GeneralRe: Please Help me soon Urgent Pin
Mkanchha16-Apr-07 18:32
Mkanchha16-Apr-07 18:32 
QuestionArrayList Sort Pin
Mkanchha15-Apr-07 19:18
Mkanchha15-Apr-07 19:18 
AnswerRe: ArrayList Sort Pin
Christian Graus15-Apr-07 19:31
protectorChristian Graus15-Apr-07 19:31 
AnswerRe: ArrayList Sort Pin
_mubashir15-Apr-07 19:32
_mubashir15-Apr-07 19:32 
GeneralRe: ArrayList Sort Pin
Mkanchha15-Apr-07 19:48
Mkanchha15-Apr-07 19:48 
GeneralRe: ArrayList Sort Pin
Sathesh Sakthivel15-Apr-07 19:55
Sathesh Sakthivel15-Apr-07 19:55 

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.