printdialog.showdialog();在64位Windows 7中不显示打印对话框 [英] printdialog.showdialog(); not showing the print dialog in windows 7 with 64 bit

查看:270
本文介绍了printdialog.showdialog();在64位Windows 7中不显示打印对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有带有打印工具栏项目的自定义控件。当打印控件时,
对话框在其他系统os上运行
的其他系统OS的64位操作系统中不会出现。仅在具有64位的Windows 7中出现问题。

I have custom control with print toolbar item.when print the control the dialog is not coming in windows 7 with 64 bit os in other system os working fine. problem only in windows 7 with 64 bit.

我的问题printdialog不在具有64位的Windows 7操作系统中出现。

my problem printdialog is not coming in windows 7 os with 64 bit.

我已经检查并分析-> PrintDialog.ShowDialog()立即返回
取消显示问题的对话框的即时安装。

i have checked and anlyaed -->PrintDialog.ShowDialog() returns immeaditely cancel instaed of showing the dialog thats the problem.

我发现了通过搜索以下链接来解决问题的方法:

i have found the solution for the problem by searched following links:

http://social.msdn.microsoft.com/Forums/en/netfx64bit/thread/8760fb6c-ae63-444e-9606-cd3295ce6b5d

http://msdn.microsoft .com / en-us / library / system.windows.forms.printdialog.useexdialog.aspx

通过将printdialog的UseExDialog属性设置为true对话框和
工作正常。但是此对话框样式类似于Windows XP,而不是Windows7 style.so
这不是

by setting true to UseExDialog property of printdialog the dialog comes and working fine.but this dialog style is like windows XP not windows7 style.so this is not excat solution.

UseExDialog属性设置为true意味着工作正常。但是打印对话框
的样式看起来像Windows XP,而不像Windows7。我还需要其他一些东西
解决方案,用于在Windows 7 OS中以64位显示打印对话框。

UseExDialog property sets to true means working fine.but the print dialog style looks like windows XP print not like windows 7. i need some other solution for showing print dialog in windows 7 os with 64 bit.

请提供此问题的完整解决方案

please provide complete solution for this problem

谢谢

西瓦

推荐答案

Microsoft的论坛


通过Mike Dos Zhang(MSFT CSG)

via Mike Dos Zhang (MSFT CSG)


The除非将UseEXDialog属性设置为true,否则PrintDialog类可能无法在AMD64(x64或任何CPU属于AMD64技术,包括intel x64cpu)微处理器上工作。

The PrintDialog class may not work on AMD64(x64 or Any CPU is belong to AMD64 technical, including intel x64cpu) microprocessors unless you set the UseEXDialog property to true.

已知问题。

.net framework4支持此限制,所以如果您想将此类与Windows7样式对话框一起使用,那么您将需要使用.net framework4,否则您将需要使用xp样式对话框并将UseEXDialog属性设置为true,或使用x86目标平台。

And this limitation has been supported in .net framework4, so if you want use this class with windows7 style dialog, then you will need to use .net framework4, otherwise you will need to use the xp style dialog with set the UseEXDialog property to true, or using x86 target platform.


在我的情况下,第二个已知问题是...我们从.NET 2.0升级到.NET 4.0,并且它开始了无需更改任何代码即可再次进行打印(打印)。

In my case the 2nd known issue was it... we upgraded from .NET 2.0 to .NET 4.0 and it started working again without any code changes (to the printing).

这篇关于printdialog.showdialog();在64位Windows 7中不显示打印对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆