I'm having problems with displaying PrintDialog on Windows 7 64 bit. I checked other threads on this forum and unfortunately none of the solutions worked for me.
Here are some experiences:
1. UseExDialog option does not work for me.
If set to false the PrintDialog does not show at all.
If set to true PrintDialog.ShowDialog() method throws SEHException. Below You can find exception stack trace:
StackTrace " in System.Windows.Forms.UnsafeNativeMethods.PrintDlgEx(PRINTDLGEX lppdex)\r\n in System.Windows.Forms.PrintDialog.ShowPrintDialog(IntPtr hwndOwner, PRINTDLGEX data)\r\n in System.Windows.Forms.PrintDialog.RunDialog(IntPtr
hwndOwner)\r\n in System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)\r\n in printerDialogTest.Program.Main(String args) w C:\\Users\\plcmiodu\\Documents\\Visual Studio 2008\\Projects\\printerDialogTest\\printerDialogTest\\Program.cs:line
2. Setting Platform target in Build to x64 does not work either. Behaviour is exactly the same as above.
3. Setting dialog owner to this (ShowDialog(this)) does not work either. Behaviour exactly the same.
The code I used for testing is as simple as possible:
View Complete Post