Magicodes.IE icon indicating copy to clipboard operation
Magicodes.IE copied to clipboard

Import and export general library, support Dto import and export, template export, fancy export and dynamic export, support Excel, Csv, Word, Pdf and Html.

Results 204 Magicodes.IE issues
Sort by recently updated
recently updated
newest added

导入时,单元格内容可以自动转换为bool、枚举或通过 ValueMapping将值进行“映射式”转换。 建议将转换抽象为IValueConverter接口,通过IImportHeaderFilter或特性方式由用户自定义转换方式。 实现思路: 1.将ImporterHeaderInfo.cs中的 public Dictionary MappingValues { get; set; } = new Dictionary(); 改为:public Func ValueConverter { get; set; } 2.由用户按需编写Func。 3.为了方便用户使用:将Dictionary转换器设定为默认转换方式。同样BoolConverter、EnumConverter等转换器作为系统转换器供用户选择。 public class DicConverter: IValueConverter { public...

enhancement
area-excel

| A | B | C | | ---- | ---- |----| | 1 | 2 | 3 | | 4 | 5 | 6 | 根据某些规则达到 | A |...

bug
area-excel

this: (https://docs.microsoft.com/zh-cn/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only) 仅在Windows 上支持System.Drawing.Common microsoft will stop surpport one day

enhancement
discussion

![image](https://user-images.githubusercontent.com/64453154/140866457-71b286b4-91d3-41df-9d39-7fa6750a4de8.png) 类似这样的表头。支持解析吗?如有,麻烦给下doc的地址。我没找到,谢谢

enhancement
area-excel

### Expected behaviour SeparateByRow 与 SeparateBySheet 可以组合使用,sheet 名称按预期结果排列 `` for (int i = 0; i < userList.Count; i++) { exporter.Append(data1,userList[i].name); exporter.SeparateByRow(); exporter.AppendHeaders(); exporter.Append(data2); exporter.SeparateBySheet(); } exporter.ExportAppendData(path); `` ### Actual behaviour...

bug
area-excel

l例如这个情况,不写 [ExporterHeader(DisplayName = "备注", IsAutoFit = false)] 导出会显示Remark作为列名. ``` [ExporterHeader(IsAutoFit = false)] [JsonProperty, Column(StringLength = -1)] [DisplayName("备注")] public string Remark { get; set; } ``` 以下写法是ok的,导出能显示"备注"作为列名 ``` [ExporterHeader(DisplayName = "备注",...

bug
area-excel

string DocTitle="学生表" IExcelExporter exporter = new ExcelExporter(); var result = await exporter.Export(filepath, dataTable); 请问如何导出带有“学生表”主标题的Excel?

area-excel

当我导入wps编辑过的文件时,系统报错The given key was not present in the dictionary

area-excel