I want to display ms word document in asp.net, but I want to display word as it is in original format ... Means with spaces and each line should be dislplay in new line
I have tried this but their are no spaces between words
Microsoft.Office.Interop.Word.ApplicationClass wordApp = new Microsoft.Office.Interop.Word.ApplicationClass();
string filePath = path;
object file = filePath;
object nullobj = System.Reflection.Missing.Value;
Microsoft.Office.Interop.Word.Document doc = wordApp.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.Document doc1 = wordApp.ActiveDocument;
Range m_Content = doc1.Content.FormattedText;
Label3.Text =m_Content.text;
doc.Close(ref nullobj, ref nullobj, ref nullobj);
My Output is display as
Resume Name:-Raju Bhaiyyalal Khangare E-Mail id :-rajukhangare2211@gmail.com Contact no. :-8793166274 Carrier Objective:- To build my self in fast growing IT field & provide best of services to the organization, with hard work and skill which will take me to the pinnacle while contributing to the growth of the organization. Personal Skills:- Creative and positive mindset. Work with devotion and give my 100% at worktime. Efficient and effective in prioritizing work well under pressure . Educational Details:- Course University/Board Passing Year Percentage S.S.C. Pune Board 2007 72% H.S.C Pune Board 2009 74% B.C.A RTM Nagpur University 2012 47.11% M.C.A.-II RTM Nagpur University 2013 (Appeared) Computer Skills:- JAVA VB HTML Oracle MS-OFFICE 03/07 Windows vista/xp/07,Unix,DOS Curricular Activities:- UR of RCC college for 2 years Organized Gathering in RCC college Other Courses :- Done diploma in Core and Advance java programming Done diploma in VB Done diploma in computer application from RSMIT Personal Details:- Name :Raju Khangare Father’s Name :Bhaiyyalal Bhagwan Khangare Address :At post Saoner,Near Radheshyam Temple, Ward No.16 , Pahlepar Saoner,Dist.-Nagpr State- Maharashta Date Of Birth :22 october 1991 Gender :Male Nationality :Indian Language Known :Hindi,Marathi,English Hobbies :Chess ,Cricket, Music, travelling Declaration:- I here by declare that above mentioned information is true to the best of my knowledge. Date;- Raju khangare Place:-
Plz help me.