|
-
Mar 2nd, 2005, 03:59 PM
#1
Thread Starter
Junior Member
Problem when opening Outlook XP automatically...
Hi
Im busy with an application that automtically opens outlook and runs through all the messages in the inbox to save .pdf files to a specified folder.
My problem is that when I call my procedure to run outlook an message appears on the screen stating
"A program is trying to access e-mail addresses you have stored in outlook. Do you want to allow this? If this is unexpected then it may be a virus and you should choose no"
YOu then have the Yes with a time limit and No buttons. How can I stop this box from popping up every XX minutes? Is there a settings I can change or can it be done programatically?
-
Mar 2nd, 2005, 04:06 PM
#2
Re: Problem when opening Outlook XP automatically...
No, you can not get around this programmatically. The security feature of Outlook is getting tighter and tighter
with each version. The .Body property is now on the list of protected properties and the .SaveAs is on
the list under protected methods. 
You may want to look at re-writing it as a Trusted Outlook Add-In. This is the only way to get around it using the OOM.
This is the proper way to get around it. There are third party products that may seem to help, but they are reliant
upon Outlook not changing. So if the next version of Outlook adds more security then you need to re-write
your code again anyways
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|