Email Publish programatically - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Email Publish programatically

Last post 04-22-2011 03:36 PM by Skarn. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-22-2011 08:10 AM

    • Gjain1
    • Not Ranked
    • Joined on 04-22-2011
    • Posts 3

    Email Publish programatically

     Hi All,

    Below is the requirement:

    - On a webpage, User clicks on a button/link to generate a InfoPath form from the template saved on local drive
    - Generated InfoPath form should be pre-populated with values from DB
    - Publish the generated to email recipients programaticaly

    I am able to unPackage and package the infopath using CAB SDK and then modify the template.xml file to set the values from the DB. 

    I am almost struck up with the emailing the form to recipients thru code. There is something like Email adapter node in Manifest.xsf will this work ?

    Please help.

    Thanks,

    Gaurav

     

     

     

  • 04-22-2011 03:36 PM In reply to

    • Skarn
    • Top 50 Contributor
      Male
    • Joined on 04-20-2008
    • Australia
    • Posts 198

    Re: Email Publish programatically

    In my IP2003 experience I've only been able to attain silent form submit through instantiating an Outlook object and then building the email using Outlook scripting.

    I think any other way you can think of to submit from within IP will require user interaction.

    As it is, it sounds like your user is going to have an awkward experience anyway - they are on a webpage, push a button, Infopath opens (assuming they have it) a form appears, does something to pre-populate values, and then they have to hit another button to submit it.

    Maybe consider leaving Infopath application out of the equation and just populate an XML document using webpage scripting (create an MSXML DOM) and send it using webpage scripting/button? The XML document can be a blank Infopath form.xml. That way the recipient can open it by double clicking and see it in Infopath.

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