Hi Mark,
You cannot cancel printing through scripting once "File/Print..." has
been selected by the user. What you can do is add a "Print" button to
your form (make it "visible - screen only") and instruct the user to
print via that button only. When this button is pressed you can
perform the required field checking and either report an error or
cause printing to occur via JavaScript. This is a perfectly acceptable
approach and is used quite often.
There are ways to hide the Print... item from the File menu and the
print icon but that's probably going too far.
I hope this helps...
Fred