If you can get a pointer to the document template you can call:
pDocTemplate->OpenDocumentFile(NULL) ; // create a new empty document
Doc templates can be got through the m_pDocManager pointer of the CWinApp object. You need to iterate it using a POSITION object. Or, if you have an existing document object of the type you want to create, you can call GetDocTemplate() on your document object to get a pointer to it. Roger Allen Sonork 100.10016 If I'm not breathing, I'm either dead or holding my breath. A fool jabbers, while a wise man listens. But is he so wise to listen to the fool? Please step to the rear of the car and make room for more victims. - John Simmons the Outlaw programmer, 1st Feb 2002, in the lounge