最近需要按顺序打印word.excel.图片,其中有的需要单面打印,有的双面.网上查了很多方法.主要集中在几个方式解决 1.word的print和excel的printout里设置单双面 2.printdocument里的printsettings的duplex设置单双面 试过之后效果都不好,昨天终于在MSDN上找到个直接设置打印机单双面的代码,非常管用. using System.Runtime.InteropServices; using System; namespace MyDuplex…
查资料看了2种解决方法: 1.通过办公软件dll转换,用flans去看 2.通过Aspose转换成pdf格式,在用js前台读pdf(我用的pdf.js) 今天我解决的就是WORD/EXCEL/PPT 转化成 PDF ,然后 PDF在线阅读 1.WORD/PPT/EXCEL转PPT类(很简单的) using Aspose.Words; using Aspose.Cells; using Aspose.Slides; /// <summary> /// Office2Pdf 将Office文档转化…