如何将图像从XML插入Excel [英] How to insert image from XML to Excel
本文介绍了如何将图像从XML插入Excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望使用XML导出excel。但无法弄清楚如何添加图像。通过从后端在C#中创建XML,我正在导出excel。可以请任何建议链接或方法。
谢谢。
I was looking to export excel using XML. But didn't able to figure out how to add an image. By creating the XML in C# from back end I am exporting the excel. Can any please suggest any links or the way to do so.
Thanks.
推荐答案
只需将图像转换为字节流并将其保存在xml文件中,导出为excel时只需将此字节流转换为图像。
Hi, Just convert your image as byte stream and save it in xml file, while exporting to excel just convert this byte stream into image.
这篇关于如何将图像从XML插入Excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文