PrintDialog returns always cancel

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JR

    PrintDialog returns always cancel

    Dim PrintDialog As New PrintDialog
    Dim result As DialogResult = PrintDialog.Sho wDialog()
    If result = Windows.Forms.D ialogResult.OK Then
    'I get always cancel(2) as an result and nothing happens
    end if

    Why do I aways have cancel as an result. It shout popup but it doens on
    vista 64

    Thanxs

  • kimiraikkonen

    #2
    Re: PrintDialog returns always cancel

    On Mar 26, 9:21 am, "JR" <xx....@xx.xxwr ote:
    Dim PrintDialog As New PrintDialog
    Dim result As DialogResult = PrintDialog.Sho wDialog()
    If result = Windows.Forms.D ialogResult.OK Then
    'I get always cancel(2) as an result and nothing happens
    end if
    >
    Why do I aways have cancel as an result. It shout popup but it doens on
    vista 64
    >
    Thanxs
    JR,
    Try This:

    If PrintDialog1.Sh owDialog = Windows.Forms.D ialogResult.OK Then
    ' Code
    End If

    And make sure, you've one printer installed at least.

    Comment

    Working...