Click here to Skip to main content
15,887,343 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i have a word document file in that file i have some headings ,paragraphs and image
how to read that file line by line and how i know the heading and paragraphs and image are present if it is present then it will also save into databases.

What I have tried:

i have a word document file in that file i have some headings ,paragraphs and image
how to read that file line by line and how i know the heading and paragraphs and image are present if it is present then it will also save into databases.
Posted
Updated 6-Aug-16 20:44pm
Comments
Afzaal Ahmad Zeeshan 6-Aug-16 17:01pm    
You can use any third party library to read the content. You cannot write that code all on yourself, because that will be tough and would be buggy.
Maciej Los 7-Aug-16 3:54am    
Why? You can save Word document into database and then you can retrieve that document from database.
awaisshabir 7-Aug-16 4:08am    
its a user requirments
Maciej Los 7-Aug-16 4:17am    
OK. What have you tried? Where are you stuck?
Laysence 30-Aug-16 7:23am    
You could try out this .NET's library Word documents, you would not go through your document line by line but instead you would read your Word files in C# and iterate through all its elements (Paragraphs, Tables, Pictures, etc.).

1 solution

See Microsoft.Office.Interop.Word namespace ()[^]. Google will also find you sample code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900