l0o3
asked on
How to count word of microsoft office files?
Hi guys
i need count word in office software
for ex:
count word of [.doc , docx , .xls , .ppt , .pdf , .rtf , .html , .txt ] files
i need sample file for count word in files
for web application.
thank you
i need count word in office software
for ex:
count word of [.doc , docx , .xls , .ppt , .pdf , .rtf , .html , .txt ] files
i need sample file for count word in files
for web application.
thank you
Hope this helps: http://office.microsoft.com/en-us/word-help/count-the-number-of-words-in-a-document-HA001230358.aspx
ASKER
niralbhavsar i need web application code and sample
this is learning of microsoft word
this is learning of microsoft word
Hi!
This can be work for MSWord:
http://www.codeproject.com/KB/cs/mswordcount.aspx
Here you need to use:
Microsoft.Office.Interop.W ord.WdStat istic.wdSt atisticWor ds ' Count Words
instead of:
Microsoft.Office.Interop.W ord.WdStat istic.wdSt atisticPag es ' Count pages
Moreover, Excel Interop should do excel reading job and same with the case of PowerPoint ".ppt" file.
If you want to read ".pdf" then "iTextsharp.dll" might help you(which is special for pdf manipulation).
This can be work for MSWord:
http://www.codeproject.com/KB/cs/mswordcount.aspx
Here you need to use:
Microsoft.Office.Interop.W
instead of:
Microsoft.Office.Interop.W
Moreover, Excel Interop should do excel reading job and same with the case of PowerPoint ".ppt" file.
If you want to read ".pdf" then "iTextsharp.dll" might help you(which is special for pdf manipulation).
ASKER
Shahan i have error in this
what's this?
i have added .NET>Microsoft.Office.Inte rop
but error
WordApp.Documents.Open(
WordApp not foundwhat's this?
i have added .NET>Microsoft.Office.Inte
but error
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
WordApp.Documents.Open
WordApp not foundthis code not run in web, only for windows application
ASKER
thank you