Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 21st, 2005, 02:42 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to generate in HTML

Hi
I have a file in word document,i have generate the same file in HTML and save that one in a particular path.
I need a code in C#. If anyone knows then plz send the code.

Thanks and Regards
Lily
 
Old July 29th, 2013, 05:44 AM
Registered User
 
Join Date: Jul 2013
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, you can try this to convert Word document to a HTML file in C#:
Code:
// Convert Word (DOCX) document to HTML.
DocumentModel.Load("Document.docx").Save("Document.html");

// Also you can convert HTML back to a Word (DOCX) document.
DocumentModel.Load("Document.html").Save("Document.docx");
I used this C# Word component.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove orphaned html elements from html string pauliehaha C# 2008 aka C# 3.0 2 June 30th, 2008 09:40 AM
html:errors and html:messages sparun1607 Struts 0 November 23rd, 2006 08:34 AM
Response.Write to generate HTML fhenderson BOOK: Beginning ASP.NET 1.0 0 March 10th, 2006 02:57 PM
generate table Patrick19 C# 1 March 12th, 2005 08:48 AM
Can you preload child html files to 1parent html? bekim Javascript How-To 4 January 22nd, 2005 04:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.