in reply to saving as a .doc?

Platform?

If Win then you could use OLE.
If Linux/Unix you will have to go with OpenOffice as suggested.