Printer.print line

I have a line on one of the vb forms. I want to print this line. The following command fails
printer.print form1.line.
Is there any other way of doing this?

Thank you in advance.
Who is Participating?
MufloneConnect With a Mentor Commented:
If you need to print just a straight line you can use:
Printer.Line (a,b)-(c,d)
where a and c are the x axis and b and d are the y axis

You can also choose a color for print the line adding RGB(xxx, yyy, zzz)
xxx = red component
yyy = green component
zzz = blue component
jkaiosIT DirectorCommented:
I'm afraid you cannot do that. However, if you want to print the line on the form including the form itself then you can simple use the PrintForm method instead.

Question has a verified solution.

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.

All Courses

From novice to tech pro — start learning today.