Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Jul 2005
    Location
    Bangkok, Bangkok Metropolis, Thailand
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Posting a completed Userform (VB6)

    I have made a form using VB6, but the information entered into the form needs to be posted to a manager. The best way would be for the whole completed form to be sent as a small html or attachment file.

    Any ideas how I can do this please?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Posting a completed Userform (VB6)

    If you want to preserve the formatting of the form, it might be best to print it to a PDF file, and send that.
    If the formatting is not important, you could put the relevant information in the body of the e-mail (as plain text)

    To send mail, you can use the MAPISession Control and MAPIMessages Control, or if you're using Outlook, you can control Outlook in code using Automation.

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Posting a completed Userform (VB6)

    For maximum trendiness, you could create an XML-formatted file of your form data and attach that to your message. <img src=/S/smile.gif border=0 alt=smile width=15 height=15> Of course, by default XML displays as a tree format in IE, so that might not be as useful as plain text or text formatted as HTML.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •