尝试打开.xls文件时出错

时间:2018-03-08 21:53:49

标签: excel vba excel-vba

我在.xls文件中有一些信息(我是从SAP下载的),我需要将其粘贴到.xlsm文件中。

我试图像往常一样打开该文件,但我有以下错误:

"C:\Program Files\Java\jdk1.8.0_144\bin\java" -Dmaven.multiModuleProjectDirectory=C:\Users\Gebruiker\IdeaProjects\TaalmaatjesWebsite\RestApi "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA 2017.3\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA 2017.3\plugins\maven\lib\maven3\bin\m2.conf" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2017.3\lib\idea_rt.jar=61277:C:\Program Files\JetBrains\IntelliJ IDEA 2017.3\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2017.3\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2017.3.4 install
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building RestApi 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- jooq-codegen-maven:3.10.2:generate (jooq-codegen) @ RestApi ---
[INFO] No <inputCatalog/> was provided. Generating ALL available catalogs instead.
[INFO] License parameters       
[INFO] ----------------------------------------------------------
[INFO]   Thank you for using jOOQ and jOOQ's code generator
[INFO]                          

<...>

[INFO] Generation finished: taalmaatjes: Total: 479.009ms, +0.111ms
[INFO]                          
[INFO] Removing excess files    
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ RestApi ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ RestApi ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ RestApi ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\Gebruiker\IdeaProjects\TaalmaatjesWebsite\RestApi\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ RestApi ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ RestApi ---
[INFO] 
[INFO] --- maven-war-plugin:3.2.0:war (default-war) @ RestApi ---
[INFO] Packaging webapp
[INFO] Assembling webapp [RestApi] in [C:\Users\Gebruiker\IdeaProjects\TaalmaatjesWebsite\RestApi\target\RestApi-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [C:\Users\Gebruiker\IdeaProjects\TaalmaatjesWebsite\RestApi/webapp] to [C:\Users\Gebruiker\IdeaProjects\TaalmaatjesWebsite\RestApi\target\RestApi-1.0-SNAPSHOT]
[INFO] Copying webapp webResources [C:\Users\Gebruiker\IdeaProjects\TaalmaatjesWebsite\RestApi/../Angular/dist] to [C:\Users\Gebruiker\IdeaProjects\TaalmaatjesWebsite\RestApi\target\RestApi-1.0-SNAPSHOT]
[INFO] Webapp assembled in [902 msecs]
[INFO] Building war: C:\Users\Gebruiker\IdeaProjects\TaalmaatjesWebsite\RestApi\target\RestApi-1.0-SNAPSHOT.war
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ RestApi ---
[INFO] Installing C:\Users\Gebruiker\IdeaProjects\TaalmaatjesWebsite\RestApi\target\RestApi-1.0-SNAPSHOT.war to C:\Users\Gebruiker\.m2\repository\com\apon\RestApi\1.0-SNAPSHOT\RestApi-1.0-SNAPSHOT.war
[INFO] Installing C:\Users\Gebruiker\IdeaProjects\TaalmaatjesWebsite\RestApi\pom.xml to C:\Users\Gebruiker\.m2\repository\com\apon\RestApi\1.0-SNAPSHOT\RestApi-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.449 s
[INFO] Finished at: 2018-03-08T22:51:26+01:00
[INFO] Final Memory: 19M/301M
[INFO] ------------------------------------------------------------------------

Process finished with exit code 0

和两个选项:End和Debug。如果我选择调试,我会收到以下错误:

Run-time error ‘-2147221080 (800401a8)’:

The file format and extension of ‘file.xls’ don’t match. The file could be corrupted or unsafe. Unless you trust its source, don’t open it. Do you want to open it anyway?

我在谷歌找不到任何东西。我该如何解决?以不是.xls

的其他格式提供信息是不可能的

1 个答案:

答案 0 :(得分:0)

也许尝试用记事本打开文件?记事本几乎可以打开任何文件。可能内容会显示奇怪的字符。

相关问题