The EndDoc event is fired when the selected printer finishes printing a document. The parameter of this event is the name (with the full path) of the generated group file.
The Message Capture ActiveX control (BiPrnDrv.OCX ) can be used without a form by calling the CreateObject method from VB.