c# - FullSeriesCollection 上的参数无效
问题描述
嗨,我正在收回 Excel 插件项目的主导权。但是我遇到了一种奇怪的错误:
System.Runtime.InteropServices.COMException (0x800A03EC): Parameter not valid at Microsoft.Office.Interop.Excel._Chart.FullSeriesCollection(Object Index)
对应的行是:
chart.FullSeriesCollection(1).DataLabels.ShowValue = true;
知道那里有什么问题吗?
解决方案
推荐阅读
- android - 使用共享首选项以编程方式使 LinearLayout 在 android studio 中消失
- python - 当我只分配原子类型时,为什么 CPython 的 GC 会运行?
- linked-list - 哈希表如何用于动态长度数组?
- sql - 使用 Django QuerySet 执行多表 SQL 查询
- python - 我如何计算用户猜测正确序列的尝试次数
- reactjs - 如果 value 是一个对象,那么 useContext 会导致重新渲染
- asp.net - IIS url 重写为 /applicationname/url
- python - 如何在 plotly (Python) 中解决此图例标签问题?
- mongodb-realm - 如何防止滥用 Mongodb Realm app id?
- javascript - 我想从 PHP 接收 JSON(通过 JS xmlHttpRequest() 的 POST 方法发送)回显