Your question, your audience. Choose who sees your identity—and your question—with question security.
Dim LabelPrint As New PrintDialog()
Cursor.Current = Cursors.WaitCursor
Dim result As DialogResult
If Label_Printer = "" Then
result = LabelPrint.ShowDialog()
If (result = DialogResult.OK) Then
Label_Printer = LabelPrint.PrinterSettings.PrinterName
Else
Exit Sub
End If
Else
LabelPrint.PrinterSettings.PrinterName = Label_Printer
End If
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
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.
This is a known issue.
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.
Switched my solution to Framework 4 and everything worked