FpSpread.SaveExcel导出的excel,[content_types].xml文件名为小写字母
我使用 FpSpread.SaveExcel(form.FileName, FarPoint.Excel.ExcelSaveFlags.UseOOXMLFormat)导出excel文件,但是导出的excel文件中的content_type文件为小写文件名的.xml,而不是正常的.xml,导致某些系统找不到该文件,
请问,如何能导出带有大写字母的.xml的excel文件?
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ4AAABMCAYAAACcVll2AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAA4mSURBVHhe7Z0PbFRFHse/20LLoZyXQ1EP43m0JaEHEs+c2PbM6ZkLtMamKqeJSDBnae+uxDYQYkxAMTYxxoN0c0WO2pwhaO7OoDZo2hCD98ej+CdGKaVVtyX+A6tICFSr/bd7M+/N2759ff9m3+x2u/v7wOy8N2/ezL7N/r7vO7O701CMAYKYIcbGxsSWPwoKCsTWdMxt2dXz6svrHLe+c408kRNE2nEK5FQEqJto8P7c+vQ6nouQcBAzgl0gmwPUKVC9XIMVXl/2HDMkGPaQcBAZgV2ABg3aIIJBuEPCQcwIZlFIxV3dy9GYIYGRR2py9PQ3YoMgFDDOAnauh2jwOlbszrGrZ8Z8jt82CWfIcRDK4YFpTanGKfB5ufWY1z7hjRLHseBkNbRm9P96bjRr2uZZtOAajBXt1vaJ7MJLIJIJUGubbm2Y6/rpi9cn0UgOJcJx8eDt+OHie9gWbyqqKwTPNdVIzM9+8gpGSzvZNpFNyLgKmWCVFQ4SgvSgZqiiSY+3aOjHWUZkFTKiwfFbX0Y0OCQa6UOJcOha4Ec0omnQjS48tKAer4s9Iv3wADYSkZ2ocxw+REMv4/tEtuDlCpzEw8t1yLgYmbqEGtQ4Dr+iwbZJN3KPZMXDjF0b/HyjDRKP9KLw41hv0SDVmH0YwRk0MFUOW5yeT9DnSPhH4VDFj2gYuQwDeObWEB56jc9dhLD41jA+1srFvkjVTw9opVY+froiXmcxzX1IkUwgyp4jU5/XdauvUpwId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AO2vHhZbfASygbmKOtTwm/2014Fdbr0YxrChSljbKEbjkQhzKd3oi/B9C6xehUlUaFFoIgjB5zgYfKjy/qmRhPTd4Hlsb+9HwbV34cUT7zHZmKrvH3Y3Ze/sXj7O1ix6B5bG77LCaotJu1AV0CnmGsbGJuD8d/GLULm2LD6pOSD66OMTmGKC9GD1bs0J8Hac0dvRJz5btXmL6eJRjNvuLjf1xQRk2WZsX9HOhkdrUSl+wsOHNNyZ1KEjfj0l2ryFMXSxvg4hdNSIY8WNWNphlLMhzPJOeH2SnYuLQhNqCfQjt/vvvx/tf2vHVff+BGfOnxGl07nskstw6u9DqP39A3j22WdFqT38Td1RE/N889sh85GnPoGZiNNchROy9Q34NTaXRsRQg8O/W1KCvm3JXbcj/NOQ5lJETJO3BKGCwI6DD1dOM1EY75zERGfUNg394yt2R83z7Ti0O7TkHVBGNJzwKyYGsvU12JChua0O28wTuylA+4i1qk3sEYRaAjmO9evXxz9Z8UNeXh72798v9tTgJ7CtdWRdBMfpHL0+/0i3mg0/EuEf+ZodhDZEYLFsLU+Z4yCIFDFrF/LxurObA11GODh2bcuKjVcfBDGbCTRUmUmcApOXpyJovYSKIHKJWSscHLNAqBQM2Xbs6pPQENmM9FAl0+AL9XotymtdzNfvIr4yiwib69IiwUS2IyUcsxXZOQ4DJ9fgdD6vr8r1EEQmM6uHKqlGxZCFILKRrBeOVMw10PwFkeuQ4/CAXARBTIeEwwJ3E26OggsJiQmR6+SccLgFvVkwzNvGOSQYBKFDjoPh5TI4JBoEYQD8H+J6A/03QFpRAAAAAElFTkSuQmCC
解压之后修改.xml文件名为大写,之后再重新压缩的方式太麻烦,还要处理临时文件,想问有没有能使用该库直接处理的方式? spread.net本身没有办法转换为你提到的的 大写文件名称。
这个控件本身是以兼容office excel为基准的。你提到的某些系统找不到该文件具体是在什么什么环境,用户什么组件打开的文件 Richard.Ma 发表于 2024-6-6 17:17
spread.net本身没有办法转换为你提到的的 大写文件名称。
这个控件本身是以兼容office excel为基准的。 ...
文件要传到客户系统的,客户系统校验的是常规的.xml文件,如果Spread本身没法转换文件名的话,我再想其他办法吧。如果客户系统不能兼容大小写,我就只能考虑重新命名该文件了 嗯,可以自己通过代码重新命名里面的xml即可
页:
[1]