Getting the Approval InfoPath Form to open in Outlook 2007 Body email - InfoPath Dev
in

InfoPath Dev

Getting the Approval InfoPath Form to open in Outlook 2007 Body email

Last post 06-15-2010 07:22 AM by nagaraju y. 15 replies.
Page 1 of 2 (16 items) 1 2 Next >
Sort Posts: Previous Next
  • 10-24-2008 12:48 AM

    • enx89
    • Not Ranked
    • Joined on 10-24-2008
    • Posts 6

    Getting the Approval InfoPath Form to open in Outlook 2007 Body email

    help me to getting the Approval InfoPath Form that can be open in Outlook 2007 body email so i can approve or reject the form from outlook 2007 body email

  • 10-24-2008 01:45 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Getting the Approval InfoPath Form to open in Outlook 2007 Body email

    Hello,

    We can submit the form in body of the email using below code,

    //Here is the email body node

    IXMLDOMNode EmailBodyNode = "Prepare the body node to what values we need to show in body";

    //Email adapter connection

    EmailAdapter email = (EmailAdapter)thisXDocument.DataAdapters[emailAdapterName];

    email.To = "<ToAddress>";

    email.CC = "<CCAddress>";

    email.Subject = "<EmailSubject>";

    email.Intro = "<Introduction>";

    email.AttachmentFileName = "Data.htm";

    email.SubmitData(EmailBodyNode);

     Note: Above code in C#.

  • 10-24-2008 02:19 AM In reply to

    • enx89
    • Not Ranked
    • Joined on 10-24-2008
    • Posts 6

    Re: Getting the Approval InfoPath Form to open in Outlook 2007 Body email

    thx for the code...

    i use two form infopath, request form and approval form... if i use that code and if i send a request form from outlook body email, can the user automatically receive the approval from in outlook body email so user can approve or reject the request???  thx..

  • 10-24-2008 05:14 AM In reply to

    Re: Getting the Approval InfoPath Form to open in Outlook 2007 Body email

    HI,

    By following the below code lines you can send request form from outlook body email . So that the user receive the request form in outlook body mail and can approve or reject.

    Here is the code with which you can set an email id.

    //Get the email adapter
    EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters["Email"];

    //Set the to address
    oEmail.To = "abc#xyz.com";
    //In the above statement you can get the emailId from any one of the field that is in your form/Dataconnections.

    //Submit the email
    oEmail.Submit();

    To set an email address you can use a text box in the UI and use that fields value in the code to set the to email address.

    Hope this helps!

    Chandrakanth/GGKTech
  • 10-24-2008 09:41 AM In reply to

    • enx89
    • Not Ranked
    • Joined on 10-24-2008
    • Posts 6

    Re: Getting the Approval InfoPath Form to open in Outlook 2007 Body email

    thx for your advice....

  • 10-30-2008 08:57 PM In reply to

    Re: Getting the Approval InfoPath Form to open in Outlook 2007 Body email

    hi Shiva

    ur code, where will i input it? inside infopath?

    i've tried but can't find EmailAdapter 

     

     please elaborate more

     

    thanks,

    erick

  • 10-31-2008 12:28 AM In reply to

    Re: Getting the Approval InfoPath Form to open in Outlook 2007 Body email

    Hi,

    May I know in which language you want to implement this email functionality (either in C#, Jscript, VBScript).Here the language used by shiva is C#. In C# you will definitely get "Email Adapter" Class.

    Chandrakanth/GGKTech
  • 10-31-2008 01:02 AM In reply to

    Re: Getting the Approval InfoPath Form to open in Outlook 2007 Body email

     i'm using c#, maybe i'm not refence it..what reference that it used?

  • 10-31-2008 02:03 AM In reply to

    Re: Getting the Approval InfoPath Form to open in Outlook 2007 Body email

    Hi,

    By default infopath adds all the references into your C# project . Can you check whether this reference available in your C# project or not.

    Microsoft.Office.Interop.InfoPath.SemiTrust

    Chandrakanth/GGKTech
  • 10-31-2008 02:31 AM In reply to

    Re: Getting the Approval InfoPath Form to open in Outlook 2007 Body email

    thx chandrakanth

     

    i can't find that reference..

    i'm using infopath 2007 and VS 2005

    why?

     

  • 11-02-2008 09:53 PM In reply to

    Re: Getting the Approval InfoPath Form to open in Outlook 2007 Body email

    HI,

    After adding the reference, add the below namespace into your solution.The NameSpace is:

    Using Microsoft.Office.Interop.InfoPath.SemiTrust;

    After adding the above namespace you will get the "EmailAdapter" class.

     

    Chandrakanth/GGKTech
  • 11-02-2008 10:03 PM In reply to

    Re: Getting the Approval InfoPath Form to open in Outlook 2007 Body email

    thx  chandrakanth

    chandrakanth:

    HI,

    After adding the reference, ...

      -> what reference should i added?

    thx
  • 11-02-2008 11:30 PM In reply to

    • Anuma
    • Top 25 Contributor
      Female
    • Joined on 07-20-2005
    • India
    • Posts 525

    Re: Getting the Approval InfoPath Form to open in Outlook 2007 Body email

    Hi, You need to add “microsoft.office.interop.infopath.semitrust.dll” assembly to your references. This assembly file is located in “C:\Program Files\Microsoft Office\Office12” folder.  

     

    Anuma Chinthapalli /
    http://www.GGKTech.com
  • 12-02-2008 03:16 AM In reply to

    • ahmedk
    • Not Ranked
    • Joined on 12-02-2008
    • Posts 2

    Re: Getting the Approval InfoPath Form to open in Outlook 2007 Body email

    Dear All

    Good Day, 

    i need to view infopath 2007 form inside outlook email body.

    thabk you.

  • 12-02-2008 05:36 AM In reply to

    Re: Getting the Approval InfoPath Form to open in Outlook 2007 Body email

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