How to find the position or location of string in given document.I have one word document and i want to store all its words and word positions in database so thats why i need to find the position of the words.
so please tell me how can i find position or location of word or string in given document.
i intend to use vb.net or c# for and .doc documents
Mmmm… I haven´t found a more smart solution :-/ but maybe this helps you… We´ll suppose that you have some version of MS Office installed in your system.
First of all, you have to add a reference in your project to a Microsoft COM component called “Microsoft Word ?* object library”
*? It deppends of the version of your MS Office
After you´ve added the reference, you could test this code:
I´ll test it and it looks that it works =)