private void documentPrintSelectionAction_Execute(object sender, SingleChoiceActionExecuteEventArgs e)
 {
     if (e.SelectedChoiceActionItem.Data is IDocumentData)
     {
         CriteriaOperator criteria = ((BaseObjectSpace)ObjectSpace).GetObjectsCriteria(View.ObjectTypeInfo, e.SelectedObjects);
         SnapDocumentHelper.ShowPrintPreview((IDocumentData)e.SelectedChoiceActionItem.Data, Application.CreateObjectSpace(View.ObjectTypeInfo.Type), criteria);
     }
 }
        private void showDocumentPrintPreviewAction_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            IObjectSpace newObjectSpace = Application.CreateObjectSpace(View.ObjectTypeInfo.Type);

            SnapDocumentHelper.ShowPrintPreview((IDocumentData)newObjectSpace.GetObject(View.CurrentObject), newObjectSpace);
        }