Gets or sets a value indicating whether the dialog should be shown in the Windows XP style for systems running Windows XP Home Edition, Windows XP Professional, Windows Server 2003 or later.
Public Property UseEXDialog As Boolean
Dim instance As PrintDialog Dim value As Boolean value = instance.UseEXDialog instance.UseEXDialog = value
public bool UseEXDialog { get; set; }
public: property bool UseEXDialog { bool get (); void set (bool value); }
public function get UseEXDialog () : boolean public function set UseEXDialog (value : boolean)
When this property is set to true, ShowHelp and ShowNetwork will be ignored as these properties were made obsolete for Windows 2000 and later versions of Windows. Also, The PrintDialog class may not work on AMD64 microprocessors unless you set the UseEXDialog property to true.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
Running VS 2008 on 64 bit Vista on an Intel core2 quad processor when I switched a project from .net 1.1 to .net 3.5 the print dialog stopped working. The only diagnostic I could get was that PrintDialog_inst.ShowDialog( ) returned 'Canceled'. I read a number of web postings dredged up by googling on 'PrintDialog.ShowDialog fails' and found that several people had had problems but that none of the suggestions from the trenches were relevant. Mercifully poking around the PrintDialog properites, I noticed that UseEXDialog had a default value of false and tried setting it = true, and found that that cured the problem. I googled 'PrintDialog.UseEXDialog' to see what more I might learn and came on this useful page.
However the print dialog now behaves differently than it did before. My printer is a Xerox Phaser 6350. In the print dialog Printing_Preferences/Advanced/Image_Options/Application_Reduce/Enlarge(Expert) :100, changing from 100 to 70 used to keep the content from being truncated, but now it does not seem to do anything. I will see if Xerox can help me.
Is there any way to change the print dialog (using UseEXDialog = true) to behave like the "old" one. The "Ok" button now says "Print" and I really need it to say "Ok" for my app.