How to create unposted invoice and receipt?

We have developed a .Net Windows application to connect with SAGE and create Invoice and Receipt programmatically, these invoices and receipts are in Posted Status. But our client want to create it unposted. We tried but couldn't get any way to make it unposted. If someone can suggest how to create unposted invoice/receipt, please help us.