vb6到vb.net迁移应用程序 [英] vb6 to vb.net migration application

查看:76
本文介绍了vb6到vb.net迁移应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Vb6应用程序是使用Office 2003 .doc,.xls,.mdb作为数据源在.net中工作的.

The Vb6 application is developed using office 2003 .doc, .xls, .mdb as a data source works fine in .net

Excel.ActiveWorkbook.SaveAs("filename")

抛出

ComException was unhandled can not access filename...

推荐答案

基于错误消息,它与权限有关.检查这篇文章
InteropServices.COMException(0x800A03EC):Microsoft Office Excel无法访问该文件 [ Excel 2007自动化 [ ^ ]

对于从VB6到VB.NET的迁移,请查看以下博客文章
.NET代码转换 [
Based on the error message its just about permission. Check this post
InteropServices.COMException (0x800A03EC): Microsoft Office Excel cannot access the file[^]
Related MSDN thread Excel 2007 automation[^]

For VB6 to VB.NET migration, check the below blog post
.NET Code Conversion[^]


这篇关于vb6到vb.net迁移应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆