[new] 支持启用宏的excel格式,即xlsm格式。
parent
d9a2e0f83b
commit
861f40c29b
|
|
@ -111,7 +111,8 @@ namespace Luban.Common.Utils
|
||||||
{
|
{
|
||||||
return fullName.EndsWith(".csv", StringComparison.Ordinal)
|
return fullName.EndsWith(".csv", StringComparison.Ordinal)
|
||||||
|| fullName.EndsWith(".xls", StringComparison.Ordinal)
|
|| fullName.EndsWith(".xls", StringComparison.Ordinal)
|
||||||
|| fullName.EndsWith(".xlsx", StringComparison.Ordinal);
|
|| fullName.EndsWith(".xlsx", StringComparison.Ordinal)
|
||||||
|
|| fullName.EndsWith(".xlsm", StringComparison.Ordinal);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static (string, string) SplitFileAndSheetName(string url)
|
public static (string, string) SplitFileAndSheetName(string url)
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,8 @@ namespace Luban.Job.Cfg.DataSources
|
||||||
{
|
{
|
||||||
case "csv":
|
case "csv":
|
||||||
case "xls":
|
case "xls":
|
||||||
case "xlsx": source = new Excel.ExcelDataSource(); break;
|
case "xlsx":
|
||||||
|
case "xlsm": source = new Excel.ExcelDataSource(); break;
|
||||||
case "xml": source = new Xml.XmlDataSource(); break;
|
case "xml": source = new Xml.XmlDataSource(); break;
|
||||||
case "lua": source = new Lua.LuaDataSource(); break;
|
case "lua": source = new Lua.LuaDataSource(); break;
|
||||||
case "json": source = new Json.JsonDataSource(); break;
|
case "json": source = new Json.JsonDataSource(); break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue