export pending orders

 
How can i export pending orders into my program?