我在 vb.net 中使用 excel 应用程序时遇到问题。
我正在尝试这样的事情: -
Dim lobjExcelApp As New Application
Dim lstrSourceFilePath As String = "E:\VTL\VTL_Working\Source\Server Module Projects\Server Module VTL UnitTesting\TestResults\spfadmin_INSPEXEVTL2K8-1 2012-07-19 14_52_20\Out\..\..\..\..\..\Server Module Projects\Server Module VTL UnitTesting\VTL\Server\Unit Testing\Validation\TestFiles\01 - Tag-Anode Index.xlsx"
Dim lobjExcelWorkbook As Workbook = lobjExcelApp.Workbooks.Open(lstrSourceFilePath)
文件路径为 248 个字符。
当我打开文件时,Excel 会引发错误。
此问题发生在 Windows Server 2008(64 位)和 Excel 2007(32 位)上
有人可以帮助导致问题的原因吗?
有什么解决方法或解决方案吗?
谢谢
鲁佩什