【发布时间】:2016-02-08 19:59:07
【问题描述】:
我试过了
How do I get an Excel range using row and column numbers in VSTO / C#?
但它会抛出一个未定义的 com 异常
我想要的是类似(伪代码)
Range myRange = new Range(new cell(1,1), cell(3,3));
这样我就可以将它与(再次伪代码)一起使用
ws.myRange.Interior.Color = XlRgbColor.rgbDarkGray;
谢谢
【问题讨论】:
-
你检查我的例子了吗?
-
抱歉,迟到了
标签: c# wpf excel range office-interop