|
| Outlook Programming |
 |
Thu, 18 Jan 2007 20:59:15 -000 |
Hi all,
Can anyone point me in the right direction here: The following code works as
far as SET olItem = olApp.CreateItem(ContactItem)
DIM olNs AS Object
SET olNs = olApp.Namespace("MAPI")
olNs.Logon
' Create and Open a new contact.
DIM olItem AS Object
SET olItem = olApp.CreateItem(ContactItem)
I have tried A B and C and a load of other combinations below to no avail,
but I am sure I am missing something very fundamental.
(A) SET olItem = olApp.CreateItem("ContactItem")
(B) SET olItem = olApp.CreateItem()
(C) SET olItem = olApp.CreateItem("")
There must be syntax that works with SB to manipulating the CreatItem method
of Outlook.
Regards,
David Mullins
|
| Post Reply
|
| Re: Outlook Programming |
 |
Tue, 06 Feb 2007 15:30:24 -050 |
I tried to automate Outlook a few years ago and abandoned the attempt.
What I wanted to do would work from Visual Basic, but I could not get
some of the SBP code to work with the object. I cannot remember the
details, but I'm fairly certain it will not work. I would suggest
using a VB or C++ program as an intermidiary.
-Dan
On Thu, 18 Jan 2007 20:59:15 -0000, "David Mullins"
<david@agridata.ie> wrote:
>Hi all,
>
>Can anyone point me in the right direction here: The following code works
as
>far as SET olItem = olApp.CreateItem(ContactItem)
>
>DIM olNs AS Object
> SET olNs = olApp.Namespace("MAPI")
> olNs.Logon
>
> ' Create and Open a new contact.
> DIM olItem AS Object
> SET olItem = olApp.CreateItem(ContactItem)
>
>
>I have tried A B and C and a load of other combinations below to no avail,
>but I am sure I am missing something very fundamental.
>
>(A) SET olItem = olApp.CreateItem("ContactItem")
>(B) SET olItem = olApp.CreateItem()
>(C) SET olItem = olApp.CreateItem("")
>
>There must be syntax that works with SB to manipulating the CreatItem
method
>of Outlook.
>
>Regards,
>
>David Mullins
>
|
| Post Reply
|
| Re: Outlook Programming |
 |
Tue, 06 Feb 2007 16:38:25 -050 |
I think I recall a simple solution to this that came along a little later. Don't
know what it was though...
On Tue, 06 Feb 2007 15:30:24 -0500, Dan <dan@jinksNOSPAM.com> wrote:
> I tried to automate Outlook a few years ago and abandoned the attempt.
> What I wanted to do would work from Visual Basic, but I could not get
> some of the SBP code to work with the object. I cannot remember the
> details, but I'm fairly certain it will not work. I would suggest
> using a VB or C++ program as an intermidiary.
>
> -Dan
>
>
> On Thu, 18 Jan 2007 20:59:15 -0000, "David Mullins"
> <david@agridata.ie> wrote:
>
>> Hi all,
>>
>> Can anyone point me in the right direction here: The following code
works as
>> far as SET olItem = olApp.CreateItem(ContactItem)
>>
>> DIM olNs AS Object
>> SET olNs = olApp.Namespace("MAPI")
>> olNs.Logon
>>
>> ' Create and Open a new contact.
>> DIM olItem AS Object
>> SET olItem = olApp.CreateItem(ContactItem)
>>
>>
>> I have tried A B and C and a load of other combinations below to no
avail,
>> but I am sure I am missing something very fundamental.
>>
>> (A) SET olItem = olApp.CreateItem("ContactItem")
>> (B) SET olItem = olApp.CreateItem()
>> (C) SET olItem = olApp.CreateItem("")
>>
>> There must be syntax that works with SB to manipulating the CreatItem
method
>> of Outlook.
>>
>> Regards,
>>
>> David Mullins
>>
>
>
|
| Post Reply
|
| Re: Outlook Programming |
 |
Fri, 02 Mar 2007 15:44:02 +000 |
Easiest method is to create an Active X object in VB 6 and call that via
OLE. I ran into the same issues a while ago and ended up doing this.
Now I just use the same component all over the place.
Rgds,
Dave Brown
http://www.dbws.net
Peter Barus wrote:
> I think I recall a simple solution to this that came along a little later.
Don't know what it was though...
>
>
>
> On Tue, 06 Feb 2007 15:30:24 -0500, Dan <dan@jinksNOSPAM.com> wrote:
>
>> I tried to automate Outlook a few years ago and abandoned the attempt.
>> What I wanted to do would work from Visual Basic, but I could not get
>> some of the SBP code to work with the object. I cannot remember the
>> details, but I'm fairly certain it will not work. I would suggest
>> using a VB or C++ program as an intermidiary.
>>
>> -Dan
>>
>>
>> On Thu, 18 Jan 2007 20:59:15 -0000, "David Mullins"
>> <david@agridata.ie> wrote:
>>
>>> Hi all,
>>>
>>> Can anyone point me in the right direction here: The following code
works as
>>> far as SET olItem = olApp.CreateItem(ContactItem)
>>>
>>> DIM olNs AS Object
>>> SET olNs = olApp.Namespace("MAPI")
>>> olNs.Logon
>>>
>>> ' Create and Open a new contact.
>>> DIM olItem AS Object
>>> SET olItem = olApp.CreateItem(ContactItem)
>>>
>>>
>>> I have tried A B and C and a load of other combinations below to no
avail,
>>> but I am sure I am missing something very fundamental.
>>>
>>> (A) SET olItem = olApp.CreateItem("ContactItem")
>>> (B) SET olItem = olApp.CreateItem()
>>> (C) SET olItem = olApp.CreateItem("")
>>>
>>> There must be syntax that works with SB to manipulating the
CreatItem method
>>> of Outlook.
>>>
>>> Regards,
>>>
>>> David Mullins
>>>
>>
|
| Post Reply
|
|
|
|
|
|
|
|
|
|