Click here to Skip to main content
15,887,415 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all
I am working on vb.net application were in i want to send email through ms word 2007.
Document opens fine but the email receipient option does not come by itself.
I can do it manually but this is not my requirment.
I Want Email receipeint option to open by default as if manually opened.
Thus allowing users to type in email id & subject, body etc & hence send mail.

What i am looking for is some code in vb.net that will set email receipeint in MS Word 2007 by default.
IF any other option to do so then i am ready to accept.

Any further clarification please ask.

Thank You in advanced.
Posted

1 solution

Dim objDoc As New Word.Document
Dim oWord As Word.ApplicationClass

objDoc = oWord.Documents.Add(Template:="Normal", NewTemplate:=False, DocumentType:=0)
With oWord
.ActiveWindow.EnvelopeVisible = Not oWord.ActiveWindow.EnvelopeVisible
.ActiveDocument.SaveAs("c:\ABC.doc")
End With
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900