Hi
Is there an easy way to get a list of all the InfoPath templates present on
a SharePoint server from my own code? - If so, how? :)
Thanks a lot in advance
Clay Fox - 26 Feb 2008 19:49 GMT
Not that I know of. SharePoint search is not always the best anyway.
You could create a custom list, but this would need to be maintained.
I store all of my forms in a SQL server with the Database Accelerator
package from http://www.qdabra.com which makes querying the available
templates and the documents very simple.

Signature
Clay Fox / Microsoft InfoPath MVP
www.InfoPathDev.com / The InfoPath Authority / Downloads, Samples, How-To,
Experts, Forum
> Hi
>
> Is there an easy way to get a list of all the InfoPath templates present on
> a SharePoint server from my own code? - If so, how? :)
>
> Thanks a lot in advance
S.Y.M. Wong-A-Ton - 27 Feb 2008 08:21 GMT
I guess it will be easy depending on your programming experience. :) You
should be able to use the SharePoint object model to retrieve all of the site
collections on your SharePoint server, the sites of all of those site
collections, the libraries (=lists) of all those sites, the content types of
all of those libraries, and finally the document templates of all of those
content types. There are plenty of examples in the SharePoint SDK on how to
navigate the object model to retrieve such information.
---
S.Y.M. Wong-A-Ton
> Hi
>
> Is there an easy way to get a list of all the InfoPath templates present on
> a SharePoint server from my own code? - If so, how? :)
>
> Thanks a lot in advance