using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NPOI.HSSF.UserModel;
using NPOI.SS.Formula.Eval;
using NPOI.SS.Formula.Functions;
using NPOI.SS.UserModel;
using NPOI.XSSF.UserModel;
using NPOI.POIFS.FileSystem;
using NPOI.HPSF;
using System.IO;
using NPOI.SS.Util;
using System.Drawing;
using NPOI.HSSF.Util;
using System.Web;
using System.Net;
using System.Net.Mail;
namespace NPOI
{
class Program10
{
static void Main(string[] args)
{
//说明:插入图片
//1.创建EXCEL中的Workbook
IWorkbook myworkbook = new HSSFWorkbook();
//2.创建Workbook中的Sheet
ISheet mysheet = myworkbook.CreateSheet("sheet1");
//第一步:读取图片到byte数组
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://img1.soufunimg.com/message/images/card/tuanproj/201511
NPOI2.2.0.0实例详解(十一)—向EXCEL插入图片
最新推荐文章于 2024-06-27 14:33:55 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)