Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

נעול PrintForm1 problem

  • יום שני 02 אפריל 2012 01:17
     
     
    When using PrintForm1 to print out a text file the text is highlighted when it hits the paper. How do I work around this problem? Thanks.

כל התגובות

  • יום חמישי 05 אפריל 2012 09:53
    מנחה דיון
     
     

    Hi Redfork, 

    Welcome to the MSDN forum.

    Could you please provide the codes of printing button? And how about printing image and other documents?

    Thanks in advance!

    Best regards,


    Shanks Zen
    MSDN Community Support | Feedback to us

  • יום שלישי 10 אפריל 2012 02:24
     
     

    Private Sub btnPrint_Clic() Handles btnPrint.Click
            btnPrint.Hide()
            btnExit.Hide()
            Dim RetValue As DialogResult
            RetValue = MessageBox.Show("Printer turned on Y/N? ", "Print", MessageBoxButtons.YesNo)
            Select Case RetValue
                Case DialogResult.Yes
                    PrintForm1.Print()
                Case DialogResult.No
            End Select
            btnPrint.Show()
            btnExit.Show()

        End Sub

    Really don't know what you mean with your statement "how about printing image and other documents".

    Thanks for your help.

  • יום שלישי 10 אפריל 2012 02:53
     
     תשובה
    The PrintForm component is designed to essentially print an image of what you see on screen, so I'm not sure why you're using to print text file. Please try PrintDocument instead.