无法在vb 2012中打开excel文件 [英] Unable to open excel file in vb 2012

查看:93
本文介绍了无法在vb 2012中打开excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我在这里有一个问题。我试图通过vb 2012项目中的打开文件按钮打开位于网络中的excel文件(Attachment1TextBox.Text),但是有一条错误消息,即'R:\ Planning无法找到.xlsx。检查你的拼写或尝试不同的路径。以下是代码:



进口Microsoft.Office.Interop.Excel



Private Sub Button6_Click(发件人作为对象,e作为EventArgs)处理Button6.Click

Process.Start(Excel,Attachment1TextBox.Text)

结束次级



请提醒...非常感谢!

Hi everyone,i have a question here.I tried to open an excel file (Attachment1TextBox.Text) located in the network through an open file button in vb 2012 project but there is an error message ie 'R:\Planning.xlsx cannot be found.Check your spelling or try a different path.'The following is the code:

Imports Microsoft.Office.Interop.Excel

Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
Process.Start("Excel", Attachment1TextBox.Text)
End Sub

Please kindly advise...Thanks a lot!

推荐答案

这篇关于无法在vb 2012中打开excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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