mr-kelly/TableML

我在ks里导表的时候碰到的一个读取问题

Werido opened this issue · 2 comments

Exception: 无法打开Excel: Product/SettingSource\Billboard.xlsx, 可能原因:正在打开?或是Office2007格式(尝试另存为)? Specified argument was out of the range of valid values.
Parameter name: length
TableML.Compiler.SimpleExcelFile.ParseExcel (System.String filePath) (at e:/Workspace/TableML/TableML/TableMLCompiler/SimpleExcelFile.cs:137)
TableML.Compiler.SimpleExcelFile..ctor (System.String excelPath) (at e:/Workspace/TableML/TableML/TableMLCompiler/SimpleExcelFile.cs:120)
TableML.Compiler.Compiler.Compile (System.String path, System.String compileToFilePath, System.String compileBaseDir, System.Boolean doRealCompile) (at e:/Workspace/TableML/TableML/TableMLCompiler/Compiler.cs:317)
TableML.Compiler.BatchCompiler.CompileTableMLAll (System.String sourcePath, System.String compilePath, System.String genCodeFilePath, System.String genCodeTemplateString, System.String nameSpace, System.String changeExtension, System.String settingCodeIgnorePattern, System.Boolean forceAll) (at e:/Workspace/TableML/TableML/TableMLCompiler/BatchCompiler.cs:177)
KEngine.Editor.SettingModuleEditor.DoCompileSettings (System.Boolean force, System.String forceTemplate, System.Boolean canCustom) (at Assets/KSFramework/KEngine/Editor/KEngine.Editor/SettingModuleEditor.cs:190)
KEngine.Editor.SettingModuleEditor.CompileSettings () (at Assets/KSFramework/KEngine/Editor/KEngine.Editor/SettingModuleEditor.cs:148)

这是因为Office版本的原因么?

不是office版本的原因,你是在QQ上问我的那位么? @Werido

Exception: 无法打开Excel: Product/SettingSource\Billboard.xlsx, 可能原因:正在打开?或是Office2007格式(尝试另存为)? Specified argument was out of the range of valid values. Parameter name: length TableML.Compiler.SimpleExcelFile.ParseExcel (System.String filePath) (at e:/Workspace/TableML/TableML/TableMLCompiler/SimpleExcelFile.cs:137) TableML.Compiler.SimpleExcelFile..ctor (System.String excelPath) (at e:/Workspace/TableML/TableML/TableMLCompiler/SimpleExcelFile.cs:120) TableML.Compiler.Compiler.Compile (System.String path, System.String compileToFilePath, System.String compileBaseDir, System.Boolean doRealCompile) (at e:/Workspace/TableML/TableML/TableMLCompiler/Compiler.cs:317) TableML.Compiler.BatchCompiler.CompileTableMLAll (System.String sourcePath, System.String compilePath, System.String genCodeFilePath, System.String genCodeTemplateString, System.String nameSpace, System.String changeExtension, System.String settingCodeIgnorePattern, System.Boolean forceAll) (at e:/Workspace/TableML/TableML/TableMLCompiler/BatchCompiler.cs:177) KEngine.Editor.SettingModuleEditor.DoCompileSettings (System.Boolean force, System.String forceTemplate, System.Boolean canCustom) (at Assets/KSFramework/KEngine/Editor/KEngine.Editor/SettingModuleEditor.cs:190) KEngine.Editor.SettingModuleEditor.CompileSettings () (at Assets/KSFramework/KEngine/Editor/KEngine.Editor/SettingModuleEditor.cs:148)

这是因为Office版本的原因么?

正在Office打开,Office把文件锁定了,不让其它程序打开。