Click here to Skip to main content
15,845,829 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionExport Datagrid to Excel file Pin
ADY00715-Apr-07 22:49
ADY00715-Apr-07 22:49 
AnswerRe: Export Datagrid to Excel file Pin
M A A Mehedi Hasan16-Apr-07 0:14
M A A Mehedi Hasan16-Apr-07 0:14 
GeneralRe: Export Datagrid to Excel file Pin
ADY00716-Apr-07 1:28
ADY00716-Apr-07 1:28 
QuestionServer IP Pin
vengaqua15-Apr-07 22:32
vengaqua15-Apr-07 22:32 
AnswerRe: Server IP Pin
N a v a n e e t h15-Apr-07 23:45
N a v a n e e t h15-Apr-07 23:45 
GeneralRe: Server IP Pin
vengaqua15-Apr-07 23:55
vengaqua15-Apr-07 23:55 
AnswerRe: Server IP Pin
TRK@UK16-Apr-07 5:01
TRK@UK16-Apr-07 5:01 
QuestionHow to count Words fom .doc or .txt files? Pin
Abhishek Joshi15-Apr-07 22:01
Abhishek Joshi15-Apr-07 22: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 21:59
neodeaths15-Apr-07 21:59 
Questioncrystalreportviewer1.displaygrouptree=true not working Pin
MissionSuccess15-Apr-07 21:31
MissionSuccess15-Apr-07 21:31 
Questionresponse page for http request Pin
Mohammad Daba'an15-Apr-07 21:14
Mohammad Daba'an15-Apr-07 21:14 
AnswerRe: response page for http request Pin
N a v a n e e t h15-Apr-07 23:48
N a v a n e e t h15-Apr-07 23:48 
GeneralRe: response page for http request Pin
Mohammad Daba'an16-Apr-07 0:49
Mohammad Daba'an16-Apr-07 0:49 
QuestionProblem with ajax timer [modified] Pin
Smitha Appukuttan15-Apr-07 21:00
Smitha Appukuttan15-Apr-07 21:00 
QuestionError! Pin
nclauder15-Apr-07 20:45
nclauder15-Apr-07 20:45 
AnswerRe: Error! Pin
Faisal Khatri15-Apr-07 21:56
Faisal Khatri15-Apr-07 21:56 
GeneralRe: Error! Pin
nclauder16-Apr-07 0:38
nclauder16-Apr-07 0:38 
QuestionPlease Help me soon Urgent Pin
Mkanchha15-Apr-07 20:35
Mkanchha15-Apr-07 20:35 
AnswerRe: Please Help me soon Urgent Pin
N a v a n e e t h15-Apr-07 23:51
N a v a n e e t h15-Apr-07 23:51 
GeneralRe: Please Help me soon Urgent Pin
Mkanchha16-Apr-07 19:32
Mkanchha16-Apr-07 19:32 
QuestionArrayList Sort Pin
Mkanchha15-Apr-07 20:18
Mkanchha15-Apr-07 20:18 
AnswerRe: ArrayList Sort Pin
Christian Graus15-Apr-07 20:31
protectorChristian Graus15-Apr-07 20:31 
AnswerRe: ArrayList Sort Pin
_mubashir15-Apr-07 20:32
_mubashir15-Apr-07 20:32 
GeneralRe: ArrayList Sort Pin
Mkanchha15-Apr-07 20:48
Mkanchha15-Apr-07 20:48 
GeneralRe: ArrayList Sort Pin
Sathesh Sakthivel15-Apr-07 20:55
Sathesh Sakthivel15-Apr-07 20: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.