Is there a way to send a print preview image of my Visual Basic form within an e-mail?

15 pts.
Tags:
Visual Basic
Visual Basic 2008
Visual Basic forms
Hi, I'm currently working on a project that will print and e-mail the print preview of my form. I would like for it to show up within the e-mail without sending some kind of attachment. Can this be done? I really would like for when the user opens the e-mail it shows them exactly what the visual basic form looks like. I have the code printing the print preview and that print preview is exactly how i want the e-mail to look. Thanks!

Dim OO As Outlook.Application
Dim oMsg As Outlook._MailItem
OO = New Outlook.Application
oMsg = OO.CreateItem(Outlook.OlItemType.olMailItem)
oMsg.Subject = Records
'oMsg.Body =
oMsg.Body = 'insert preview of form here?
oMsg.To =
oMsg.Send()



Software/Hardware used:
visual basic 2010 express

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta

    I'm currently working on a project that will print and e-mail the print preview of my form.

    Can you clarify your project a little more? That sounds like your project is finished once you e-mail an image of your form to someone. (To your project leader?)

    If you have a more general project in mind, be aware that you cannot control whether or not any image will be visible to any recipient nor even if the image will be delivered. The control is with the recipient, or potentially with their e-mail administrator.

    There are ways of embedding images without generating an "attachment", though an attachment is usually easier. But there is no way to force viewing of an image. If I received one of your project e-mails, I wouldn't see the image.

    Tom

    125,585 pointsBadges:
    report
  • buildman
    Hey Tom and thank you for your time. The user(s) would have the same e-mail arrangement as I would and should be able to see the image. I say this due to other e-mails I have sent with screenshots, pictures ect. My main reason for wanting to send a preview of the form is so I dont have to write code for all the textbox inputs and labels that are on my form. It would be easier for me to just send the form view and I found that the form view looks rather nice in the print preview, so thats what has lead me to my question. (Yes, project leader and group members)
    15 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following