D
djk73
Unregistered / Unconfirmed
GUEST, unregistred user!
引用了Excel、VBIDE、Office、COM InterOp组件,代码如下:
C#:
Excel.Application oXL;
oXL = new Excel.Application();
oXL.Visible=true;
oXL.Workbooks.Open("c://book1.xls",null,null,null,null,null,null,null,null,null,null,null,null);
VB:
Dim oXL as Excel.Application
oXL=new Excel.Application()
oXL.visible=true
oXL.Workbooks.Open("c:/book1.xls")
C#中关于HRESULT的异常出错,试了很多方法,不起作用,希望大家能够帮助解决,最好是能调试成功的,谢谢了!
C#:
Excel.Application oXL;
oXL = new Excel.Application();
oXL.Visible=true;
oXL.Workbooks.Open("c://book1.xls",null,null,null,null,null,null,null,null,null,null,null,null);
VB:
Dim oXL as Excel.Application
oXL=new Excel.Application()
oXL.visible=true
oXL.Workbooks.Open("c:/book1.xls")
C#中关于HRESULT的异常出错,试了很多方法,不起作用,希望大家能够帮助解决,最好是能调试成功的,谢谢了!