Re: PrintDialog Windows 7
Works fine for me on Win7 Ultimate x64 SP1
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim dlg As DialogResult
Using prt As New PrintDialog() With {.Document = New PrintDocument(), .UseEXDialog = True}
dlg = prt.ShowDialog(Me)
End Using
MessageBox.Show(dlg.ToString)
End Sub
Re: PrintDialog Windows 7
Re: PrintDialog Windows 7
Thanks juggalo the new code works :)
Re: PrintDialog Windows 7
Quote:
Originally Posted by
RoomTen
Thanks juggalo the new code works :)
So the question is, what's the difference between your code and my bare-bones code that simply tests whether the dialog window opens/shows or not?
Re: PrintDialog Windows 7
I'm honestly not sure. Something just messed up with:
Dim result As DialogResult = PrintDialog1.ShowDialog()
Which produced that error. To be honest your code threw a "Thread Error" because of cross threading but I know how to fix that error but yep I fixed that and now it's all done I hope :)