VB.net Excel ExportAsFixedFormat fails Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

前端 未结 2 1288
滥情空心
滥情空心 2021-01-28 23:18

I am trying to write a very simple VB.net app which would open an excel file and save it as excel.

The environment I am working on is as follows:

  • Windows 1
2条回答
  •  故里飘歌
    2021-01-28 23:47

    Save it as .PDF like that:

    xlWorkSheet.ExportAsFixedFormat(XlFixedFormatType.xlTypePDF, "d:\test\test.pdf")
    

提交回复
热议问题