打印份数的问题!?Copies不起作用?!

huan_jinwu 2003-08-11 06:00:57
this.printDialog = new PrintDialog();
this.printDialog.AllowSelection = true ;
this.printDialog.AllowSomePages = true ;
this.printDialog.AllowPrintToFile = true ;
this.printDialog.Document = this.pd ;
if(this.printDialog.ShowDialog()==DialogResult.OK)
{
this.pd.DocumentName = "工具(使)借用单据";
//this.pd.PrinterSettings.Copies = this.printDialog.PrinterSettings.Copies;//这句不起作用,是不是这样设的
this.pd.Print();
}
俺想打印多份,可是怎么设就不起作用?老大们这是怎么回事?
...全文
320 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiaodele 2003-08-12
  • 打赏
  • 举报
回复
在PrintShowDialog上打印可以不用在赋值了,直接调用打印设置就可以了
xiaodele 2003-08-12
  • 打赏
  • 举报
回复
写到你的Document中去可以实现的如下:
this.printDocument1.DefaultPageSettings.PrinterSettings.Copies=??
再调用你的printDialog.ShowDialog()
derek 2003-08-12
  • 打赏
  • 举报
回复
你確定 this.printDialog.PrinterSettings.Copies 返回的值是你需要的嗎?
huan_jinwu 2003-08-12
  • 打赏
  • 举报
回复
up
huan_jinwu 2003-08-11
  • 打赏
  • 举报
回复
up!
我觉得这应是操作系统的事!而不是自己要写的代码!
不太清楚,所以问!
wd_318 2003-08-11
  • 打赏
  • 举报
回复
打印的页数选择后,需要在PrintPage事件自己根据frompage和topage进行控制,那么我想copis也是同理了!需要自己在PrintPage事件中写相应代码进行控制了

110,571

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧