最近需要按顺序打印word.excel.图片,其中有的需要单面打印,有的双面.网上查了很多方法.主要集中在几个方式解决 1.word的print和excel的printout里设置单双面 2.printdocument里的printsettings的duplex设置单双面 试过之后效果都不好,昨天终于在MSDN上找到个直接设置打印机单双面的代码,非常管用. using System.Runtime.InteropServices; using System; namespace MyDuplex…
select * from (select t.*,row_number() over(partition by 分组字段 order by rownum) rn from 表名 t where 条件语句) where rn= 分组中的第几条; 引用:https://blog.csdn.net/liuhaolian/article/details/89375042…