Exception HResult 0x800a03ec when trying to open Excel with Microsoft.Office.Interop.Excel.Workbooks.Open()

前端 未结 3 1272
轻奢々
轻奢々 2021-01-06 01:44

Following Exception is thrown if I try to open an excel file on a client machine:

Exception from HRESULT: 0x800A03EC

Inner Exceptions: (emp

3条回答
  •  Happy的楠姐
    2021-01-06 02:34

    Before trying this solution be sure that you read the "Things I've done" paragraph from the question (and tried what applies to you)

    The Exception was thrown upon opening the Document; on the machine which generated the Excels, the files were generated invalid.

    The solution was to change the Format of the numbers.

    Go into System Configuration -> Time, Language and Region -> Language

    Go into Systemconfiguration -> Time, Language and Region -> Language

    Tap on the highlighted Hyperlink

    Open Advanced Settings

    Open Advanced Settings

    Change the delimiter to a point "." Change the delimiter to a point

提交回复
热议问题