Yes, but only in print Preview and not in FormView
You can set the filter in onopen, but you need to turn the filter on in the onload event. Or simply do everything in the onload and it works in formview and print preview.
I agree not sure why you would want to set the filter in the load event...