admin管理员组文章数量:1026989
在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上被修复。
在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上被修复。
本文标签: 对话框环境PrintDialogShowDialog
版权声明:本文标题:在Windows7 64位和VS2008环境下,PrintDialog.ShowDialog不能显示打印对话框 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/jiaocheng/1728605349a873848.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论