Probably you can do this way
1 - Handle the event of Loading of BatchForm (41)
2 - Before loading get whatever you need from your document and set in some var
3 - After loading fill your stuff in the batch form
So when the user opens the form the add-on will fill the batch form