Problem using the PrintDialog Control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stroumfs
    New Member
    • Mar 2007
    • 28

    Problem using the PrintDialog Control

    Hi !

    I am trying to print some results to a printer.
    I used the printDocument and printDialog1con trols. I can open the print dialog buta my problem is that i can insert my results to be printed.
    Dim dlgresult As DialogResult = Me.PrintDialog1 .ShowDialog()
    If dlgresult = Windows.Forms.D ialogResult.OK Then
    Me.PrintDialog1 .Document1.Prin t()
    End if

    The bold phrase is not working. My question is how to insert the results into the document1 in order to be printed. My results is an arrays of strings which contains passes and fails. The results are printed in a flex grid.

    Can anyone help

    thanks
  • vijaydiwakar
    Contributor
    • Feb 2007
    • 579

    #2
    Originally posted by Stroumfs
    Hi !

    I am trying to print some results to a printer.
    I used the printDocument and printDialog1con trols. I can open the print dialog buta my problem is that i can insert my results to be printed.
    Dim dlgresult As DialogResult = Me.PrintDialog1 .ShowDialog()
    If dlgresult = Windows.Forms.D ialogResult.OK Then
    Me.PrintDialog1 .Document1.Prin t()
    End if

    The bold phrase is not working. My question is how to insert the results into the document1 in order to be printed. My results is an arrays of strings which contains passes and fails. The results are printed in a flex grid.

    Can anyone help

    thanks
    what's d error so far

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Originally posted by vijaydiwakar
      what's d error so far
      And what version of VB are you using?

      Comment

      • Stroumfs
        New Member
        • Mar 2007
        • 28

        #4
        Originally posted by Killer42
        And what version of VB are you using?
        problem solved.case close.thanks

        Comment

        Working...