Link to home
Start Free TrialLog in
Avatar of mseit
mseit

asked on

How to read formated text from microsoft word table

any body can help me to how to read from word tables formated text  i tried by the code as folows . but unable o get the table collection

           ApplicationClass docApp = new ApplicationClass();
            string filePath = "C:\\Test.doc";

            object file = filePath;

            object nullobj = System.Reflection.Missing.Value;



            Microsoft.Office.Interop.Word.Document doc = docApp.Documents.Open(ref file, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj,
                ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj);

            Microsoft.Office.Interop.Word.Table tbl = doc.Tables[0];


is anything wrong in my code

ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.