Bypass the Posting purchase order form and just preview the report to screen

On the Purchase Order screen I would like the user to click the Print Purchase order button and just preview the report rather than going to the Psoting purchase order form. not sure how to do this,

I tried to let the posting form come up and then call the click method on the “OK” button but had no luck in this. any help would be appriciated.

This worked for me. On the PurchEditLine Form in the Run Method I put

this.closeOk();

this acts as if the user hits the “OK” button and imedially shows the report. have no Idea if this is the best way to do this but it works… now if I can figure out how do do this ony from the button that I want and not all the time I will be set.