cut模式生成,会裁切图片 /// <summary> /// 生成缩略图 /// </summary> /// <param name="originalImagePath">源图路径(物理路径)</param> /// <param name="thumbnailPath">缩略图路径(物理路径)</param> /// <param name="width">缩略图宽度</param> /// <param name=" Read More
posted @ 2013-06-07 15:37
梦醒心晴
Views(170)
Comments(0)
Diggs(0)
/// <summary> /// 生成缩略图,等比例生成,但是会出现白边 /// </summary> /// <param name="imageFrom">来源</param> /// <param name="pathImageTo">目标</param> /// <param name="width">宽</param> /// <param name="height">高</param> Read More
posted @ 2013-06-07 15:33
梦醒心晴
Views(222)
Comments(0)
Diggs(0)
二进制在mssql数据库中是VARBINARY(max)将文件转换为二进制public byte[] getContent(string path) { System.IO.FileStream fs = new System.IO.FileStream(@path, System.IO.FileMode.Open); fs.Position = 0; byte[] content = new byte[fs.Length]; fs.Read(content, 0, (... Read More
posted @ 2013-06-07 14:59
梦醒心晴
Views(878)
Comments(0)
Diggs(0)
点击 添加引用添加完成后 在项目中using Word = Microsoft.Office.Interop.Word;using Excel = Microsoft.Office.Interop.Excel; Read More
posted @ 2013-06-07 10:27
梦醒心晴
Views(461)
Comments(0)
Diggs(0)
using Word = Microsoft.Office.Interop.Word;using Excel = Microsoft.Office.Interop.Excel;/// <summary> /// 将一个word中的内容拷贝到另外一个word中的表格中 /// 前提是目标word中有一个表格 /// </summary> /// <param name="source">源文件</param> /// <param name="target">目标文件</param> Read More
posted @ 2013-06-07 09:59
梦醒心晴
Views(886)
Comments(0)
Diggs(0)
usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Drawing;usingSystem.Windows.Forms;usingSystem.IO;namespace CodeEncoder{ public class WordHelp { private Microsoft.Office.Interop.Word.ApplicationClass oWordApplic; // a reference to Word application priva... Read More
posted @ 2013-06-07 09:24
梦醒心晴
Views(665)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号