J
Jason James
Hi all,
Only when a printpage event is fired from my printdocument
am I able to get a handle on my printer through the passed
parameter as follows
ByVal e As System.Drawing.Printing.PrintPageEventArgs
from e I can obtain the length of the string that will be printed
on my printer by using
StringSize = e.Graphics.MeasureString(string, Font)
This is OK if the printpage event has fired but what if I want to
check whether the string is too long or not before the
printpage event is fired?
Does anybody know of a way of obtaining an object that
contains
System.Drawing.Printing.PrintPageEventArgs
outside of the printpageevent?
Thanks in advance,
Jason.
Only when a printpage event is fired from my printdocument
am I able to get a handle on my printer through the passed
parameter as follows
ByVal e As System.Drawing.Printing.PrintPageEventArgs
from e I can obtain the length of the string that will be printed
on my printer by using
StringSize = e.Graphics.MeasureString(string, Font)
This is OK if the printpage event has fired but what if I want to
check whether the string is too long or not before the
printpage event is fired?
Does anybody know of a way of obtaining an object that
contains
System.Drawing.Printing.PrintPageEventArgs
outside of the printpageevent?
Thanks in advance,
Jason.