[Testing] Output Infopath View to HTML email - InfoPath Dev
in

InfoPath Dev

[Testing] Output Infopath View to HTML email

Last post 07-12-2012 09:33 PM by tashatstanwell. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 12-01-2011 03:21 AM

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

    [Testing] Output Infopath View to HTML email

    Hi, I'm testing a in-form javascript code to output an Infopath View to HTML Outlook email via a button on the form.

    There is already the built in function - Send as Email - which can be initiated by an end user.
    I proceeded with this because I wanted to utilise the component methods in other in-house work tools e.g. saving as an MHT file or printing to PDF for file storage.
    Our office uses IP2003 primarily and it's worked pretty well so far.

    I've now tried with IP2007 and Windows 7 at home and had to tweak a few things.
    I found I had to lower the activex security and get a domain error when a save to the user's temp folder occurs.

    But at work in our normal domain and using IP2003 I don't get any errors at all.

    The temp folder is used to save rich text field images so they can be attached and linked properly in the Outlook email.

    So two things.

    1. I'm sharing this for other people to maybe find useful

    2. I want to try and refine it and eliminate any bugs and implement any suggestions other IP developers might have.

    So please give the attached template a go on your own system and see if it generates the View correctly for you. Then you may find a use the methods yourself, or you can help out with some feedback.

    As far as I can find, this method has never been produced before but could potentially be very useful.
    It contains some examples too of how to manipulate form properties and reference the files within the form template and cache.

    I've attached the template as an IP2003 compatible template.

     

  • 12-01-2011 03:31 AM In reply to

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

    Re: [Testing] Output Infopath View to HTML email

    BTW I'm being self-controlled - at work when I got this working I did an office victory lap or two. But no-one else got it ;-P

  • 07-12-2012 09:33 PM In reply to

    Re: [Testing] Output Infopath View to HTML email

    This is fantastic!

     Do you have a IP2010 version or an open version? I'm trying to send a particular view of a form to multiple email addresses.  Sending in Nintex Workflow currently but need the images to be embedded so external users can see the images.  Not able to host images externally.

     

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