public void PrintImg(int img1, int img2) { if (!Print) { MessageBox.Show("警告,您没有此项操作权限!"); return; } if (img1 <= 0 || img2 <= 0) { MessageBox.Show("页码不能小于等于0"); return; } if (img1 > img2) { MessageBox.Show("起始页不能大于终止页!"); return; } if (img2 > MaxPages) { MessageBox.Show("终止页不能大于总页码!"); return; } if (ImgView.Image != null) { Himg._PrintImg(img1, img2); } }