
how to get custom form and send custom form from VB
The custom form must be installed and published on the recipient
system for that to work, and the item must have been sent using RTF
format. The recipient also must be using Outlook.
To launch a custom form you would use the form's published custom
message class:
Set mOMailItem = mOApp.CreateItem("IPM.Note.foAdi")
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
Quote:
> i made a custom form and saved it in Organizational Forms
> Library, for example with name : foAdi
> and then i wanna make a VB application that get this
> custom form and send it to someone else...
> the question is how i can get this custom form and how to
> tell outlook.application to send this custom form...
> i try manually with Outlook 2000, however when someone
> else receives this custom form..all the buttons i added on
> the form dissapear....
> Sample code :
> Dim mOApp As Outlook.Application
> Dim mONs As Outlook.NameSpace
> Dim mOMailItem As Outlook.MailItem
> Set mOApp = New Outlook.Application
> Set mONs = mOApp.GetNamespace("MAPI")
> Set mOMailItem = mOApp.CreateItem(olMailItem)
> With mOMailItem
> .To = GetSetting("Send2Email", "VERP", "email")
> .Subject = "Nylon Production Condition Approval"
> .Body = ?
> If .Recipients.ResolveAll Then
> .Send
> End If
> End With