c# - Can I save a DOCX file as HTML using the DOCX Library? -
I'm using the DOCX library to manipulate * .docx files.
I use a * Docx file as an HTML file, but using this code:
(DocX sourceDoc = DocX.Create (sourceFilename)) {sourceDoc .SaveAs (sourceHTMLFileName); }
... is not working (sourceHTMLFileName "Bla.html").
Is this possible? If so, then how?
The author of DOCX has said that his library does not support this feature yet. I got a link to the library.)
The quote from the link:
I would love to add this functionality to DOCX, but there is a problem.
[...]
This is the only easy way to convert, using Microsoft's Office Interop libraries
[...]
Is there no way to make a conversion without installing Word.exe on my machine? I did not say that, I said that there is no easy way. Looks very promising, now if only I can find the time.
He suggests an alternative solution using Interop but it can not be possible on the basis of your environment.
Code> Save is from the file that ends in .html
; Simply saves a .docx
file with the wrong extension; No conversions have happened.
Comments
Post a Comment