1
If you are looking for a different API, you could try the Leadtools SDK. You can convert from Word to Html really easily with only a few lines of code. This example is pulled from their documentation page for DocumentConverter:
https://www.leadtools.com/help/sdk/v21/dh/doxc/documentconverter.html
- using (var documentConverter = new DocumentConverter()){
- string inFile = @"C:\temp\input.docx";
- string outFile = @"C:\temp\output.html";
- var jobData = DocumentConverterJobs.CreateJobData(inFile, outFile, DocumentFormat.Html);
-
- var documentWriter = new DocumentWriter();
- documentConverter.SetDocumentWriterInstance(documentWriter);
-
- var job = documentConverter.Jobs.CreateJob(jobData);
- documentConverter.Jobs.RunJob(job);
- }
1
[quote]
i am developing this time application in a system it doesn't conatain Ms office so Microsoft.Office.Interop.Word.dll will not support.[/quote]
hi, Pramod Since you do not need MS Office to be installed on developer machine, I recommend C# Word component which enables programmers to manipulate Word files in .NET platform without MS automation. More specific please check -
Convert Word from/to HTML with Embedded Image.
Hope it works for your situation.
1
1
Hi Sutish Nair thank u very much for u r reply.. it had helped me a lot in converting word to html and html to word.
I want same for open document to html and html to open document conversion, i am developing this time application in a system it doesn't conatain Ms office so Microsoft.Office.Interop.Word.dll will not support.
So with out ms office word document , i want to convert the open source document to html and reverse
Could you please help me on this thanking you...