Hello,
I have a custom content type (.docx file) deployed in SharePoint 2007.
This file is populated by a custom timer job which polls a database for information.
The timer jobs looks for the content type, generates a new file and saves to a doc library.
This issue i am having is that SharePoint could not find the content type in the 12 hive after deployed, and I had to point the timer job to the physical file within a 'Forms library' on the site itself.
It is now working and the timer job runs and generates the file, but it's not generating the data within which is coming from the database.
I know the database connection is working as the file name is generated from db data..
Is there an issue saving data to this file as its not using the 12 hive version ?
Any ideas appreciated.
Many Thanks!
Edit:
I have changed the timer job code path to:
System.Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFiles) + "\\Microsoft Shared\\web server extensions\\12\\TEMPLATE\\FEATURES\\ContentTypeFolder\\ContentTypeName.dotx"));
But getting the same results - File created but no data inside, also when i open the newly create file from the doc library it opens and has the security banner under the ribbon saying ''Server document'' to modify this document click 'edit document'
Could this be the issue?