Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Outlook 2007 Attachments

2 views
Skip to first unread message

Peter Batten

unread,
Apr 11, 2008, 6:56:35 AM4/11/08
to
Thanks for the previous Dmitry. All early versions of Outlook are now
holding eMail correctly.

I tested the code today on Outlook 2007 and it will not display the
attachment. This time I suspect a switch in Outlook preventing some
behaviour. I have tried turning off Anti-Virus and Firewall but no change.

Is there anything different that must be done for attachments to be parsed
to Outlook 2007?

TIA

Peter


Dmitry Streblechenko

unread,
Apr 11, 2008, 1:24:54 PM4/11/08
to
What is your latest code?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Peter Batten" <data...@tpgi.com.au> wrote in message
news:47ff44c3$1...@newsgroups.borland.com...

Peter Batten

unread,
Apr 11, 2008, 8:16:05 PM4/11/08
to
Hi Dnitry,

SafeItem :=
CreateOLEObject('Redemption.SafeMailItem'); // 'Create an instance of
Redemption.SafeMailItem
oItem := MSOutLook.CreateItem(olMailItem);
SafeItem.Item := oItem; // 'set Item property
SafeItem.Item := oItem;
MyRecipient := SafeItem.Recipients.Add(ConnectNumber);
MyRecipient.Type := olTO;
SafeItem.Subject := edHeading.Text;
MyAttachments := oItem.Attachments
MyAttachments.Add(slAttachmentFiles[i],olByValue);
oItem.Body := reParagraphs.Text;
oItem.Display(True);

I tried with Trust Center -
Macro Security - No security check for Macros(not recommended) checked and
it worked.
Went back to
Warnings for signed macros; all unsigned macros ar disabled and it failed
Went back to
Macro Security - No security check for Macros(not recommended) checked and
it failed and I heve not been able to repeat the successful attachment

Regards

Peter.


"Dmitry Streblechenko" <dmi...@dimastr.com> wrote in message
news:47ff9ee6$1...@newsgroups.borland.com...

Dmitry Streblechenko

unread,
Apr 20, 2008, 3:31:45 AM4/20/08
to
Looks perfectly fine to me.
When exactly does your code run? Do the atatchment display if you select a
different email and then open the old one?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Peter Batten" <data...@tpgi.com.au> wrote in message

news:47ff...@newsgroups.borland.com...

Peter Batten

unread,
Apr 20, 2008, 8:47:26 PM4/20/08
to
Hi Dmitry,

I can't get the any attachments to display or send with Outlook 2007.

I have tried on our development platform with Vista Outlook 2007 and at a
client site with XP and Outlook 2007

Other versions of Outlook work just fine with my code and with and without
Redemption.

Are you saying that you can attach an attachment to Outlook 2007?

Regards

Peter

"Dmitry Streblechenko" <dmi...@dimastr.com> wrote in message

news:480af15f$1...@newsgroups.borland.com...

Dmitry Streblechenko

unread,
Apr 22, 2008, 5:41:12 PM4/22/08
to
Are you sure you pass a fully qualified path to Attachments.Add?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Peter Batten" <data...@tpgi.com.au> wrote in message
news:480b...@newsgroups.borland.com...

Peter Batten

unread,
Apr 22, 2008, 6:36:51 PM4/22/08
to
Yes, the path is fully qualified and it is on a local machine

"Dmitry Streblechenko" <dmi...@dimastr.com> wrote in message

news:480e...@newsgroups.borland.com...

Peter Batten

unread,
Apr 22, 2008, 7:24:28 PM4/22/08
to
Ok So now I am confused. Attachments are now working

I have not altered the code and I do not know what changes I have made in
Outlook as I tried many but I thought that I had reset them to the defaults.

Now however Outlook will not launch if it is already open on the desktop,
EoleSysError 'server execution failed'
at
MSOutlook := CreateOLEObject(Outlook.Application)

Peter

"Peter Batten" <data...@tpgi.com.au> wrote in message

news:480e68aa$1...@newsgroups.borland.com...

Dmitry Streblechenko

unread,
Apr 22, 2008, 8:45:19 PM4/22/08
to
Do you have any AV apps running?
If this from a regular exe or service/COM+/etc?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Peter Batten" <data...@tpgi.com.au> wrote in message

news:480e73e3$1...@newsgroups.borland.com...

Peter Batten

unread,
Apr 22, 2008, 8:59:10 PM4/22/08
to
I've turned off all AV and windows firewall, rebooted and no change.

It is a regular .exe calling

MSOutlook := CreateOLEObject(Outlook.Application)


"Dmitry Streblechenko" <dmi...@dimastr.com> wrote in message

news:480e869c$1...@newsgroups.borland.com...

Peter Batten

unread,
Apr 23, 2008, 10:21:04 PM4/23/08
to
I've yet to check on a client site but this seems to be working now

Thanks Dmitry

"Dmitry Streblechenko" <dmi...@dimastr.com> wrote in message

news:480af15f$1...@newsgroups.borland.com...

Peter Batten

unread,
Apr 28, 2008, 7:04:38 PM4/28/08
to
I've now checked at the client site and I cannot get attachments to stick
with Outlook 2007 and Win XP

Peter

"Peter Batten" <data...@tpgi.com.au> wrote in message

news:480feec1$1...@newsgroups.borland.com...

0 new messages