emblewembl
Programmer
I am just starting to look into drawing graphics with asp.net. I have found an example that shows how to draw graphics and send them straight to the printer, using something like this:
Sub pd_PrintPage(sender As object, ev As PrintPageEventArgs)
Dim f As Font = new Font("Verdana", 9)
ev.Graphics.Drawstring("hello",f,Brushes.Black,480,65)
End Sub
I'm probably missing something really obvious but how do I draw a string, line or rectangle straight to my screen? All the examples I have seen have a sub with ev As PrintPageEventArgs which i can then only use when printing. Can anyone point me in the right direction?
Thanks. i love chocolate
Sub pd_PrintPage(sender As object, ev As PrintPageEventArgs)
Dim f As Font = new Font("Verdana", 9)
ev.Graphics.Drawstring("hello",f,Brushes.Black,480,65)
End Sub
I'm probably missing something really obvious but how do I draw a string, line or rectangle straight to my screen? All the examples I have seen have a sub with ev As PrintPageEventArgs which i can then only use when printing. Can anyone point me in the right direction?
Thanks. i love chocolate