对象'〜'的方法'〜'失败。 [英] Method '~' of object '~' failed.
本文介绍了对象'〜'的方法'〜'失败。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好b $ b
我们正面临一个VB 6.0应用程序的问题。
有一行代码可以将文本文件转换为excel文件通过Excel.Workbook。
这个代码在我们运行Windows应用程序时工作正常。
但是如果我们从windows运行相同的exe在C#.Net开发的服务然后它在这一行上给出了这个错误
oWB.SaveAs FileName,XlFileFormat.xlExcel8
我试图在谷歌搜索但没有取得任何成功。
任何建议都会非常有帮助。
先谢谢。
问候
AR
解决方案
希望此链接有效...
http://www.hagrin.com/319/exception-hresult-0x800a03ec-excel-net-sql-and -Windows服务器-2008
Hi
We are facing a issue with one of our VB 6.0 application.
There is line of code which convert a text file to excel file through Excel.Workbook.
This code works fine when we run through windows application.
But if we run the same exe from a windows service developed in C#.Net then it gives this error on this line
oWB.SaveAs FileName, XlFileFormat.xlExcel8
I have tried to search on google but didn''t get any success.
Any suggestion will be very much helpful.
Thanks in Advance.
Regards
AR解决方案Hope this link works...
http://www.hagrin.com/319/exception-hresult-0x800a03ec-excel-net-sql-and-windows-server-2008
这篇关于对象'〜'的方法'〜'失败。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文