[C #] Excel file is saved as HTML

xiaoxiao2021-03-06  38

Open and handle part much to say, a lot of information book.SaveAs (html_filename, Excel.XlFileFormat.xlHtml, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Excel.XlSaveAsAccessMode.xlNoChange, Type.Missing, Type .Ssing, type.missing, type.missing; need to pay attention to two parameters, one is excel.xlFileFormat.xlhtml, one is excel.xlsaveasaccessmode.xlnochange parameter If the transfer error usually triggers a comexception, say "Exception from HRESULT: 0x800A03EC "

转载请注明原文地址:https://www.9cbs.com/read-86070.html

New Post(0)