自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 资源 (1)
  • 收藏
  • 关注

原创 aspose.cells 设置行高行宽,自动行高行宽 代码

/// /// 设置自动高度适应 /// /// /// /// public string setRowHeight(int rowNum, int heightPixel) { _sheet.Cells.SetRowHeightPixel(rowNum - 1, heightPixel); return “OK:”; } /// <summary> ///...

2020-03-23 18:07:28 6372

原创 C# aspose.words 操作代码实例,封装类

直接上代码吧, 以下是自已写的测试aspose.words 类型的常用操作代码, 操作封装类如下, using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MY.COM.Doc { public clas...

2020-03-11 08:10:14 1477

原创 winform程序exe签名操作示例

需要做一个winform对exe文件的签名 网上查了点资料,整理了下处理过程 系统为:WIN10系统64位 1, 下载安装window sdk 安装好后的默认目录为C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64 2 开始,运行CMD, 进入DOC界面 切换到上面的目录地址 cd C:\Program Files (x86)\W...

2020-03-09 10:43:09 1490

原创 C# aspose.cell 操作代码实例,封装类

有同事问我有个项目需要Excel文当的操作,有什么好的代码示例, 看了一下,自己根据 DocumentFormat.OpenXml.dll 类来写这样的功能实现不太现实,工作量太大,可能还会有好多问题, 由于时间原因,做了个对aspose.cell第三方功能类的封装来实现。 aspose.cell 对excel操作的功能 还是挺强大的,但是功能 代码示例不太好找,网上一段一段的。 所以自己把找到的...

2020-03-06 11:25:11 3451

AsposeWord文档处理类.rar

个人项目需要网上找了N久,亲测可用,无限制,无提示 版本17.20.0.0 简单的代码示例 string fFrom = Server.MapPath("test.docx"); string fSave = Server.MapPath("test.pdf"); string imgSave = Server.MapPath("test.png"); string hbSave = Server.MapPath("testHB.docx"); //Spire.Doc.Document mydoc = new Spire.Doc.Document(); //mydoc.LoadFromFile&#40;fFrom, FileFormat.Docx&#41;; //mydoc.SaveToFile&#40;fSave, Spire.Doc.FileFormat.PDF&#41;; ////word转图片 //ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Jpeg); //options.Resolution = 120; //options.PrettyFormat = true; //options.UseAntiAliasing = true; //Aspose.Words.Document doc = new Aspose.Words.Document(fFrom); //doc.Save(imgSave, options); ////word转PDF //Aspose.Words.Document doc = new Aspose.Words.Document(fFrom); //doc.Save(fSave, SaveFormat.Pdf); //合并多个文档 Aspose.Words.Document doc = new Aspose.Words.Document(fFrom); Aspose.Words.Document doc1 = new Aspose.Words.Document(fFrom); Aspose.Words.Document doc2 = new Aspose.Words.Document(fFrom); doc.AppendDocument(doc1, ImportFormatMode.KeepDifferentStyles); doc.AppendDocument(doc2, ImportFormatMode.KeepDifferentStyles); doc.AppendDocument(doc2, ImportFormatMode.KeepDifferentStyles); doc.AppendDocument(doc2, ImportFormatMode.KeepDifferentStyles); //doc.Save(hbSave, SaveFormat.Docx); doc.Save(fSave, SaveFormat.Pdf);

2019-07-05

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除