title: How to convert Html code to Word Document in C#
body: <p>i had a situation where i will get html code. Form that i need to generate a word document using C#.Net .
  Can any one help ......</p>
  
  <p>We can consider any html code</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;head&gt;&lt;/head&gt;
  
  &lt;body&gt;
      &lt;div&gt;
          &lt;div style="position: relative;"&gt;
              &lt;p style="text-align:center;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Times New Roman';font-size:18pt;"&gt;&lt;u&gt;&lt;b&gt;Joy wood&lt;/b&gt;&lt;/u&gt;&lt;/span&gt; &lt;/p&gt;
              &lt;p style="text-align:left;margin-top:0.00in;margin-bottom:0.11in;"&gt; &amp;nbsp;&lt;/p&gt;
              &lt;tk_metadata name="last_modified" value="21/05/2019, 22:33"&gt; &lt;/tk_metadata&gt;
              &lt;tk_metadata name="author" value="Preeti chawla"&gt; &lt;/tk_metadata&gt;
              &lt;p&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-indent:-0.25in;text-align:center;margin-top:0.00in;margin-bottom:0.11in;"&gt; &lt;span style="font-family:'Calibri';font-size:12pt;"&gt;&lt;b&gt;Full stack Java Developer&lt;/b&gt;&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-indent:-0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.11in;"&gt; &lt;span style="font-family:'Calibri';font-size:12pt;"&gt;&lt;b&gt; &lt;br&gt; &lt;br&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
              &lt;p style="text-align:center;margin-top:0.00in;margin-bottom:0.11in;"&gt; &lt;span style="font-family:'Times New Roman';font-size:14pt;"&gt;&lt;b&gt;Professional Summary&lt;/b&gt;&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.11in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Proficient in Java design patterns including Singleton, Dependency Injection, Factory, Model View Controller (MVC), Data Access Object (DAO). Well versed in core java concepts like Collections, Multi-threading, Serialization.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.11in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Expertise in object modelling and Object Oriented design methodologies (UML). Experience with UML diagrams like Class, Object, Use Case, State, and Activity diagrams.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.11in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Expert knowledge over J2EE Design Patterns like MVC Architecture, Front Controller, Session Facade, Business Delegate and Data Access Object for building J2EE Applications.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.11in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Worked with JAVA 8 features like Stream API, Time API, Functional Interfaces Multithreading, Transaction Management, Exception Handling, and Collection API.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.11in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Strong experience with frontend technologies like HTML5, CSS3, Scripting languages like JavaScript, JQuery, AJAX, Angular JS, Angular 2, ReactJS, NodeJS and good knowledge in Bootstrap, SASS.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.11in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Experienced with AngularJS directives ng-app, ng-init, ng-model for initialization of AngularJS application data, implemented AngularJS Expressions, Directives, Controllers, filters and created Angular JS service layer.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.11in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Expertise in spring framework, including Spring IoC/core, Spring MVC, Spring DAO support, Spring ORM, Spring micro services, Spring AOP, Spring Security, Spring MVC, Spring Cache, and Spring Integration, and Spring Boot, Spring REST.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.11in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Experienced in implementing Micro services using Spring Boot using technologies Restful, JAX-WS, JAX-RPC, Axis, Soap, XML, WSDL, SAX and SAAS based design.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.11in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Experience in web services technologies like REST, SOAP, WSDL, JMS and Service Oriented Architecture (SOA).&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Reviewing the Database Schemas across the different domain. Worked on the Integration of the Code and deliver the build to UAT Team.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Used extensively Eclipse in development and debugging the application.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Developed JUnit test classes for Controller, Service and Data layers.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-indent:-0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &amp;nbsp;&lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:center;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:12pt;"&gt;&lt;b&gt;&lt;i&gt;Erie Insurance Group. Erie, PA. Oct 2012 – April 2014&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:center;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:12pt;"&gt;&lt;b&gt;Java Developer&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-indent:-0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;&lt;b&gt;Responsibility &lt;/b&gt;&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Client engagement developer and implementation engineer for code install to production.&lt;br&gt; &lt;br&gt; • Developed front-end using HTML, CSS, JavaScript and jQuery.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Performed client-side validations using JavaScript and jQuery Framework.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Developed the view components using JSP, HTML, Struts Logic tags and Struts tag libraries.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Responsible for understanding the functional requirements, writing the technical design and developing the requirements.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Application server upgrades testing support.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Developed and maintained web applications utilizing open source technologies like Hibernate ORM, Spring Frameworks.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt; Designed applications mainly using Spring MVC module.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Managed Object Persistence, Data retrieval using JPA, JDBC and hibernate with DB2 as backend.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Used JNDI to lookup for the data sources required.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Added functionality that ingested data from a SOAP web service.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Reviewed and signed off QA test plan and Test case documents.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Used JUnit for Unit testing and Involved in performing Integration testing of the whole application.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Implemented log4j for application logging and to troubleshoot issues in debug mode.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;CVS was used as version control system.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-indent:-0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &amp;nbsp;&lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:center;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:12pt;"&gt;&lt;b&gt;&lt;i&gt;Barnes &amp;amp; Noble. Dubuque, IA. Aug 2011 – Sept 2012&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:center;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:12pt;"&gt;&lt;b&gt;Java Developer&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-indent:-0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;&lt;b&gt;Responsibility &lt;/b&gt;&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt; Developed GUI using JSP, Struts frame work.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Developed Action forms, Action classes using Struts framework to handle user requests.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Implemented Struts Bean Tags, Logical Tags and Display Tags in JSPs.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Coded Entity Beans for data persistence within Data Layer.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Developed user interface components for Deal, Activity modules along with business components.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Designed and deployed server side EJB (Session Beans and Entity Beans) components on Eclipse IDE.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Written SQL, PL/SQL and stored procedures as part of database interaction.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Responsible for code merging modules using clear case.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Responsible for change requests and maintenance during development of the project.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Developed project in Eclipse IDE.&lt;/span&gt; &lt;/p&gt;
              &lt;p style="margin-left:0.25in;text-align:left;margin-top:0.00in;margin-bottom:0.00in;"&gt; &lt;span style="font-family:'Calibri';font-size:11pt;"&gt;Worked with JBoss EAP Command Line Interfaces.&lt;/span&gt;&lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>