如何在asp.net中的excel中添加图像 [英] how to add image in excel in asp.net

查看:94
本文介绍了如何在asp.net中的excel中添加图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用数据库在excel asp.net中制作图表
或通过asp.net导出时如何在excel中添加图像

在此先感谢

how to make chart in excel asp.net with the database
or how to add image in excel when it export by asp.net

thanks in advance

推荐答案

首先创建图像.有很多方法可以执行此操作,并将其保存到临时位置.您可以使用 Image HtmlImage 类.由于您知道文件路径是使用 RenderControl 方法呈现的.我不记得它的确切类别,但就我所记得的是 HtmlWriter 类别.
Create the image first. There are many ways to do this, and the save it into a temporary location. You can use Image and HtmlImage classes. Since you know the file path render it using RenderControl method. I cannot remember the exact class of it, but as far as remember it was HtmlWriter class.


这篇关于如何在asp.net中的excel中添加图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆