Laurent Veilleux wrote:
> Hi
> I would like to use a2dDocumentCommandProcessor::CreateDocuments
> to create document without asking to the user which kind of doc must be 
> created
>
> this function needs a2dDocumentTemplate and I don't know how the get
> the one I want cause
>
> a2dDocumentCommandProcessor::SelectDocumentType and other functions
> need to ask to the user or a filename
> I try to use the a2dDocumentCommandProcessor::GetDocTemplates but I
> don't know how to use the list ?? 
>   
docom.cpp is full of examples on how to iterate through m_docTemplates. 
which is what you can do with GetDocTemplates().
docviewref.cpp line 1737 as a complete example on how to do it.
You should be able to find your template.

Klaas







-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Wxart2d-users_dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to