Publishing InfoPath form(with code) on Office365 Site. - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Publishing InfoPath form(with code) on Office365 Site.

Last post 07-31-2012 04:59 AM by ErnestoM. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-31-2012 12:55 AM

    Publishing InfoPath form(with code) on Office365 Site.

    Hi all,

    I have written code in InfoPath 2010 using C#.

    I want to implement this form on office365 site. 

    I am using the following line of code.

    using (SPSite mySite = new SPSite(ServerInfo.SharePointSiteUrl.ToString()))

    {

                     --------------

    }

    But facing error while publishing it. Aslo can not able to run this code. Getting error in above line of code.

    Also tried with both the options

     

    1]  Form Option --> Full Trust (the form has access to file and setting on the computer)

    2]  Form Option --> Automatically determine security level (recommended)

     

     Still it needs Administrator Approved.

    Can anybody have any solution on this?

     

    Thanks,

    Sheetal

  • 07-31-2012 04:59 AM In reply to

    Re: Publishing InfoPath form(with code) on Office365 Site.

    Hi-

    You don't mention what the error is, or whether the error happens during the publishing process or while opening the form. But Office 365 does not allow admin approve. Forms with code must be published directly to the library, thanks to the sandboxing option. Here's what Microsoft has to say:

    With InfoPath 2010, you can publish form library forms, with code, directly from the InfoPath Designer as long as the form is not a fully trusted form and you are a site collection administrator by using the Sandboxed Code service in SharePoint. Publishing forms with sandboxed code uses the same process as publishing a form to a form library or as a site content type.

    More here: http://office.microsoft.com/en-us/infopath-help/publish-a-form-HA101783381.aspx#_Toc262226390

    Good luck!


    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


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