I've created a InfoPath Library within Sharepoint (MOSS 2007). I've created a workflow which executes whenever an InfoPath form is created/changed. The workflow essentially changes values within the InfoPath according to business rules.
Is there a way of creating a new InfoPath Form, within code, and depositing that within Sharepoint Library. Consider for instance the bsuiness scenerio of a 'Purchase Order Form', which once saved & approved generates a 'Goods Receipt Form' to faciliate inbound deliveries without the need for human intervention.