VB - Counting characters in MS Word including footnote characters?

Can anybody help me with the problem with counting characters in MS Word using Visual Basic? I have made an application which counts characters in MS Word file, but it doesn't count characters in footnote. Please help.

LooDuck
LooDuckAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bobbit31Commented:
this should work:

Dim wdApp As New Word.Application
Dim wdDoc As Word.Document

Set wdDoc = wdApp.Documents.Open("C:\my documents\test.doc")

MsgBox wdDoc.ComputeStatistics(wdStatisticCharacters, True) '' the true means include footnotes and endnotes

wdDoc.Close
Set wdDoc = Nothing
wdApp.Quit
Set wdApp = Nothing

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LooDuckAuthor Commented:
Yes, I know that. But Im using Microsoft library dsofile.dll. Using that library, you dont have to open Word each time to see statistics. It makes application works faster. The problem is that I dont know how to count characters in footnotes using that library.

If you find or know anything about that, please answer here.

Thanks anyway.
0
dmangCommented:
http://support.microsoft.com/default.aspx?scid=KB;en-us;q224351

This page will provide a demo app that returns a whole bunch of stuff about your document files
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

LooDuckAuthor Commented:
Yes, that exactly the library which Im already using. But, I can't count the number of characters in footnotes. Does anybody knows any other dll which could be useful for that?
0
CleanupPingCommented:
LooDuck:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
0
bobbit31Commented:
Recommendation: PAQ and refund points
0
LooDuckAuthor Commented:
Although nobody post a good answer for my problem with dsofile library, I accept bobbit31's answer as a solution. Thanks! Bye!
0
DanRollinsCommented:
Moderator, my recommended disposition is:

    Accept bobbit31's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.