Why is the PrintDialog not displaying (in 64 bit)?
        Posted  
        
            by Bill
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Bill
        
        
        
        Published on 2010-05-25T04:54:24Z
        Indexed on 
            2010/05/25
            5:01 UTC
        
        
        Read the original article
        Hit count: 195
        
This code, when built in .Net for Any CPU platform and running on a 64-bit machine, simply returns a DialogResult of Cancel without showing the expected dialog box.
Dim dlg As New System.Windows.Forms.PrintDialog
If dlg.ShowDialog() = Windows.Forms.DialogResult.OK Then
    '... print the document '
End If
However, it works fine when the application is built for the x86 platform, and run on a 64-bit machine. How can you display the dialog with a 64-bit compile?
© Stack Overflow or respective owner