How to read list data in word file through c#?
I am working on a project in which I have to separate the Question No., Question and Ans written in Microsoft word file. The Question No. is in bold characters and numbered list format following which is the Question which is also in bold characters and in the next line is the Answer in normal format. So I want to know how to separate these three through programming in c#. reading Question No, is my first priority.
Mukesh KumarPosted Nov 24, 2015, 5:24 AM
Mohammad AmanPosted Nov 24, 2015, 5:36 AM
What you could do is something like this:
This will change every TEXT to
TEXT. If you want to check each character to see if it is bold you would need to iterate throughrngWord.Characters. You may need some extra work to encapsulate consecutive bold characters, but the basis is as above.If you are only worrying about whole words then the above will work fine.
Hope this helps.
Mohammad AmanPosted Nov 24, 2015, 5:05 AM
Amandeep singhPosted Nov 24, 2015, 4:26 AM
Mohammad AmanPosted Nov 24, 2015, 3:24 AM
Amandeep singhPosted Nov 24, 2015, 2:07 AM
Mohammad AmanPosted Nov 23, 2015, 11:22 PM