I am using version 5.5
I am using the following code to publish a document.....straight from the examples
public static void PublishDocument( TreeProvider tree, TreeNode node )
{
try
{
WorkflowManager wm = new WorkflowManager( tree );
WorkflowInfo wi = wm.GetNodeWorkflow( node );
if ( wi != null )
{
WorkflowStepInfo si = wm.GetStepInfo( node );
if ( si != null )
{
// Use the workflow step information to approve the document until it is published
while ( si.StepName.ToLower() != "published" )
{
si = wm.MoveToNextStep( node, "" );
if ( si == null )
{
break;
}
}
}
}
}
catch (Exception ex )
{ }
}
If I enter a future DocumentPublishFrom date in a node then save and publish, the DocumentPublishedVersionHistoryID remains null, and hence the document never publishes.
Since the Kentico code controls this area, are there any ideas?