wanghui9072229

在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上被修复。参见此链接

分类:

技术点:

相关文章:

  • 2022-01-20
  • 2022-03-09
  • 2021-05-25
  • 2022-01-21
  • 2022-12-23
  • 2021-10-20
猜你喜欢
  • 2022-12-23
  • 2021-12-20
  • 2021-10-01
  • 2022-01-18
相关资源
相似解决方案