回复 1楼刘君的帖子
Spread本身提供了PrintSheet方法,可以打印它里面特定的sheet。
如果你是自定义的PrintDocument,通过PrintDocument的PrintPage事件完成Spread的打印。
Spread的OwnerPrintDraw方法可以传递参数,指定打印的是Spread里的第几个Sheet。只要将它的Index传递进去即可。
语法说明:
- public void OwnerPrintDraw(
- Graphics g,
- Rectangle rect,
- int sheet,
- int page,
- OwnerPrintInfo info
- )
复制代码
参数介绍:
- Parameters
- g
- Graphics device that handles printing
- rect
- Location and size of a rectangular region
- sheet
- Sheet from which to print
- page
- Specific page of the sheet to print
- info
复制代码 |