PrintForm1 problem
-
2 เมษายน 2555 1:17When 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.
ตอบทั้งหมด
-
5 เมษายน 2555 9: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 เมษายน 2555 2: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 SubReally don't know what you mean with your statement "how about printing image and other documents".
Thanks for your help.
-
10 เมษายน 2555 2: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.- ทำเครื่องหมายเป็นคำตอบโดย Shanks ZenMicrosoft, Moderator 16 เมษายน 2555 8:59