Quick Print pick sheet via script

SOLVED

Hi everyone

I'm trying to write a script that will mimic the quick pick sheet printing (ask if to save the changes & bring up the pick sheet dialog for the order selected).

I'm using a new button for that on the sales order. The reason being, I need to save some data and invoke some procedures specifically when the pick sheet is being printed.

Any help/direction will do.

Thanks in advance.

Oren