判断打印机是否可用

if(!DevExpress.XtraPrinting.PrintHelper.IsPrintingAvailable)

{

     MessageBox.Show("打印机不可用...""提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}

posted @ 2010-11-23 20:37  sweetjian  阅读(484)  评论(0编辑  收藏  举报