Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook - chose profile
Message
 
 
To
02/11/2014 17:18:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01610358
Message ID:
01610364
Views:
42
you are welcome

>thank you Sergey - that was an easy fix. works great.
>k
>>Use workaround suggested at http://msdn.microsoft.com/en-us/library/office/ff861594.aspx
>>
>>
>>  loMapi = loOutLook.GetNameSpace("MAPI")
>>  mailFolder = loMapi.GetDefaultFolder(olFolderInbox)
>>  loItem = loOutlook.CreateItem(0)
>>
>>
>>
>>>Whenever vfp generates an email and outlook is NOT open I get an annoying message
>>>blue box appears - choose profile (heading) - with 'outlook' appearing in profile name.
>>>I have ticked the options to select this as default setting but it reappears each time just the same.
>>>Is there something I can add in the coding to force the email program to open without this presistent option appearing.
>>>Here is what I have running currently.
>>>tnx
>>>k
>>>
>>> LOCAL loOutlook, loItem, lnCountAttachments, loMapi
>>> TRY
>>>  loOutlook = CREATEOBJECT("outlook.application")
>>>  loMapi = loOutLook.GetNameSpace("MAPI")
>>>  loMapi.Logon()
>>>  loItem = loOutlook.CreateItem(0)
>>>etc......
>>> IF tlOpenEmail
>>>     .display()
>>>     olNormalWindow = 2
>>>
>>>     loInspector = .GetInspector()
>>>     loInspector.WindowState = olNormalWindow
>>>ELSE
>>>
>>>    .SEND()
>>>   ENDIF
>>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform