在Windows7 64位和VS2008环境下,PrintDialog.ShowDialog不能显示打印对话框

在VS2008中编写如下代码: PrintDialog printDialog newPrintDialog();printDialog.ShowDialog();在&

在VS2008中编写如下代码:

  
  
   
   PrintDialog printDialog 
   
   =
   
    
   
   new
   
    PrintDialog();
printDialog.ShowDialog();
  
  

在XP环境下,它可以正常显示出打印对话框。但在Windows 7 64位环境下,什么也显示不出来,也没有异常抛出。

将PrintDialog.UseEXDialog属性设置为True,可显示出打印对话框。代码如下:

  
  
   
   PrintDialog printDialog 
   
   =
   
    
   
   new
   
    PrintDialog();
printDialog.UseEXDialog 
   
   =
   
    
   
   true
   
   ;
printDialog.ShowDialog();
  
  

这是VS2008的bug,并且此bug可能不会在VS2008上被修复。

发布者:admin,转转请注明出处:http://www.yc00.com/web/1733747817a3708187.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信