2012-04-02 54 views
0

我是新手,很抱歉,如果對我的問題的回答很明顯。 我在我的項目中使用自定義InfoPath任務表單。對於形式登記,我使用下面的代碼在Feature.Template.xml:SharePoint 2010:註冊InfoPath表單並聯合使用自定義功能接收器

<?xml version="1.0" encoding="utf-8" ?> 

<Feature xmlns="http://schemas.microsoft.com/sharepoint/" 
    Title="Prepare workflows"  
    ReceiverClass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver" 
    ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"> 
    <Properties> 
     <Property Key="GloballyAvailable" Value="true" /> 
     <Property Key="RegisterForms" Value="Forms\*.xsn"/> 
    </Properties> 
</Feature> 

而且我想用我的自定義FeatureReceiver(工作流關聯)。但我不知道,我怎樣才能使用它(它完全分開)。有什麼辦法可以做到這一點(可能是,調用我的接收器FeatureInstalled中的Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver註冊方法?

我可以嘗試從我的功能中的代碼註冊我的表單接收器,但我想,可能是有不同的,更好的方法?

預先感謝您。

回答

0

得益於凱,溶液中。你必須從SPFeatureReceiver沒有繼承你的接收機,並從Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver使用調用base.FeatureActivated(屬性)如果它需要。

相關問題