how to export web page to word
Loading
how to export web page to word
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal YelvePosted May 9, 2023, 6:24 AM
Hi Thang,
Please check the below links
https://www.c-sharpcorner.com/UploadFile/d2dcfc/convert-html-to-word-then-word-to-pdf-with-C-Sharp/
https://blog.aspose.com/html/convert-html-webpage-to-word-docx-csharp/
https://stackoverflow.com/questions/38567795/convert-html-to-word-using-c-sharp
https://gist.github.com/farhan-raza/58c356ba2c5354ad9a5c6d3405d43eef
https://social.msdn.microsoft.com/Forums/en-US/e8a5069f-7ea0-4964-bbde-32651d931544/how-convert-html-to-doc-in-c?forum=aspwebforms
Amit KumarPosted May 9, 2023, 5:15 AM
Hi,
// Load HTML file using Document class
Document document = new Document(@"C:\Files\sample.html");
// Convert HTML file to Word DOCX format
document.Save(@"C:\Files\output.docx", SaveFormat.Docx);
For more details:
https://www.c-sharpcorner.com/UploadFile/d2dcfc/convert-html-to-word-then-word-to-pdf-with-C-Sharp/
https://blog.conholdate.com/total/convert-html-to-word-document-using-csharp/
https://gist.github.com/farhan-raza/58c356ba2c5354ad9a5c6d3405d43eef
Marvin ReidPosted May 8, 2023, 6:29 PM
You can take the html and convert it to a word file programmatically through use of the DocumentConverter. Here is an example:
https://www.leadtools.com/help/sdk/tutorials/dotnet-fx-winforms-convert-files-with-the-document-converter.html
Rajkiran SwainPosted Apr 29, 2023, 5:51 AM
There are multiple ways to export a web page to Word format. Here are two commonly used methods:
Note: The exported Word document may not look exactly the same as the original web page due to differences in formatting and styling.