in reply to OLE print to a file

You can find the window in question (via it's title and/or class) and call PostMessage or SendMessage to simulate clicking on the button, filling out the text fields, etc.