Deploying Infopath Form in solution package - InfoPath Dev
in

InfoPath Dev

Deploying Infopath Form in solution package

Last post 08-13-2008 07:08 AM by luisin22. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-11-2008 01:59 PM

    Deploying Infopath Form in solution package

    Hi I'm deploying a solution package in SharePoint, I'm doing it like this:

     Elements.xml

    <Elements xmlns = "http://schemas.microsoft.com/sharepoint/">
      <Module Name="XSN" Url="FormServerTemplates" RootWebOnly="FALSE">
        <File Url="DeployableForm.xsn" Name="DeployableForm.xsn" Type="GhostableInLibrary"></File>
      </Module>
    </Elements>

    Feature.xml:

     <ElementManifests>
           <ElementFile Location="DeployableForm.xsn"/>
      </ElementManifests>

     

     

    It gets deployed to the Forms Server templates list, now, my form is browse enabled and when i click on it it doesn't let me open it in the browser, instead it pop's the message that the a client is needed to open the form.

    The same form without changing anything, i deploy it throug infopath client, and it works perfectly. What am I missing here so my form deployed with features can be seen in the browser?

  • 08-13-2008 07:08 AM In reply to

    Re: Deploying Infopath Form in solution package

    Yes my approach was correct, what I was missing is that in the event receiver for the feature is a must to use the XsnFeatureReceiver or a inherit from it if you have custom code.

     

     This should do the trick

     

    Regards

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.