c# - Save directly as FilteredHTML -


i opening .html file word. if user clicks on word save button word saves file normal html lot of unnecessary comments , tags.

i want save directly "filtered html". possible?

i've tried open format parameter:

object format = microsoft.office.interop.word.wdsaveformat.wdformatfilteredhtml; document = applicationword.documents.open(ref filename, ref missing, ref readonly, ref missing, ref  missing, ref missing, ref missing, ref missing, ref missing, ref format, ref missing, ref isvisible, ref missing, ref missing, ref missing, ref missing); 

but interrupts comexception.

stack trace:

a first chance exception of type 'system.runtime.interopservices.comexception' occurred in baseapp.common.core.dll    bei microsoft.office.interop.word.documents.open(object& filename, object& confirmconversions, object& readonly, object& addtorecentfiles, object& passworddocument, object& passwordtemplate, object& revert, object& writepassworddocument, object& writepasswordtemplate, object& format, object& encoding, object& visible, object& openandrepair, object& documentdirection, object& noencodingdialog, object& xmltransform)    bei product.baseapp.common.core.commonservices.wordservice.initializeword(string filenamestring) in d:\dev\lineproduct\current\com.product.baseapp.cml.client\plugins\baseapp.common.core\commonservices\wordservice.cs:zeile 88. 


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -