Search found 17 matches: getdefaultfolder

Return to advanced search

Re: More details WIN_OLEAUTO information in debugger

... = objOutlook.GetNamespace("MAPI")Set colFolders = objNamespace.Folders  return objNamespace object with methods like GetDefaultFolder(), and GetAddressEntryFromID(), along with a Folders object, containing Methods like Add(), GetFirst(), GetLast(), and a count property. ...
by FWExplorer
Thu Jul 09, 2020 5:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: More details WIN_OLEAUTO information in debugger
Replies: 11
Views: 1696

Re: Read email from subfolder

I found it, the problem isthat I have multiple accounts in outlook, and it was searching in the wrong account.
How can I define the Get( "GetDefaultFolder", "6" ) from a specific account?

Thanks,
by Marc Vanzegbroeck
Wed Jun 12, 2019 10:54 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read email from subfolder
Replies: 1
Views: 433

Re: Usando Outlook

... ;Inbox //oFolder=9 ;Calendar //oFolder=10 ;Contacts //oFolder=11 ;Journal //oFolder=12 ;Notes //oFolder=13 ;Tasks oFolder := oNameSpace:GetDefaultFolder(6) nNumeroTotalEmail := oFolder:Items:Count FOR i:=nNumeroTotalEmail TO 1 STEP -1 nContaEmail++ cAssunto := oFolder:Items( i ):Subject ...
by MGA
Sun Jun 02, 2013 11:04 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Usando Outlook
Replies: 16
Views: 4523

Outlook oMail:ReceivedTime does not work in olFolderInBox 6

... LOCAL oOutlook := TOleAuto():New( "Outlook.Application" ) LOCAL oNameSpace := oOutlook:getnamespace('MAPI') LOCAL oFolder := oNameSpace:GetDefaultFolder( olFolderInBox ) LOCAL nItems LOCAL oMail LOCAL iMsg nItems := oFolder:Items:Count FOR iMsg := 1 TO nItems oMail := oFolder:Items[ ...
by MarcoBoschi
Wed Jun 09, 2010 12:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Outlook oMail:ReceivedTime does not work in olFolderInBox 6
Replies: 3
Views: 723

Date and time

... LOCAL oOutlook := TOleAuto():New( "Outlook.Application" ) LOCAL oNameSpace := oOutlook:getnamespace('MAPI') LOCAL oFolder := oNameSpace:GetDefaultFolder( 5 ) LOCAL nItems LOCAL oMail LOCAL iMsg LOCAL cNomeMsg nItems := oFolder:Items:Count oMeter:nTotal := nItems FOR iMsg := 1 TO nItems ...
by MarcoBoschi
Fri Apr 16, 2010 2:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Date and time
Replies: 5
Views: 943

Re: Outlook

... "Outlook.Application" ) oNameSpace := oOL:Get( "GetNameSpace", "MAPI" ) oInbox := oNameSpace:Get( "GetDefaultFolder",6) // 6 = Inbox-Folder oCMSFolder := oInbox:Folders("cmsmail") for each oItem In oCMSFolder:Items cSender := '' cSubject ...
by Colin Haig
Sun Mar 14, 2010 4:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Outlook
Replies: 2
Views: 669

Outlook

... "Outlook.Application" ) oNameSpace := oOL:Get( "GetNameSpace", "MAPI" ) oInbox := oNameSpace:Get( "GetDefaultFolder",6) // 6 = Inbox-Folder Is there a way to open a non default folder. Cheers Colin
by Colin Haig
Sat Mar 13, 2010 3:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Outlook
Replies: 2
Views: 669

save contacts fron Outlook application object

... End Sub Private Sub AccessContacts(ByVal findLastName As String) Dim folderContacts As Outlook.MAPIFolder = Me.ActiveExplorer() _ .Session.GetDefaultFolder(Outlook.OlDefaultFolders _ .olFolderContacts) Dim searchFolder As Outlook.Items = folderContacts.Items Dim counter As Integer = 0 For ...
by Silvio
Tue Jan 26, 2010 8:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: save contacts fron Outlook application object
Replies: 0
Views: 973

save Attachments from outllook application object

... Private Sub ThisApplication_NewMail() Handles Me.NewMail Dim inBox As Outlook.MAPIFolder = Me.ActiveExplorer() _ .Session.GetDefaultFolder(Outlook. _ OlDefaultFolders.olFolderInbox) Dim inBoxItems As Outlook.Items = inBox.Items Dim newEmail As Outlook.MailItem inBoxItems ...
by Silvio
Tue Jan 26, 2010 8:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: save Attachments from outllook application object
Replies: 3
Views: 812

Re: Outlook OLE

... "Outlook.Application" ) oNameSpace = oOL:Get( "GetNameSpace", "MAPI" ) oInbox = oNameSpace:Get( "GetDefaultFolder", "6" ) // 6 = Inbox-Folder nCount := oInbox:ITEMS:Count() for i := 1 to nCount aadd(aData,oInbox:Items[ i ]:Subject) ...
by Colin Haig
Thu Nov 05, 2009 11:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Outlook OLE
Replies: 19
Views: 6174

Re: Retrieve items from contact folders in Outlook

... := CREATEOBJECT( "Outlook.Application" ) LOCAL oNameSpace := oOutlook:GetNameSpace("MAPI") LOCAL oContacts := oNameSpace:GetDefaultFolder( olFolderContacts ) LOCAL i LOCAL aStruct := {} AADD( aStruct , { "NOME" , "C" , 50 , 0 } ) AADD( aStruct , { "INDI" ...
by MarcoBoschi
Wed Sep 23, 2009 7:05 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Retrieve items from contact folders in Outlook
Replies: 5
Views: 1067

Retrieve items from contact folders in Outlook

... := CREATEOBJECT( "Outlook.Application" ) LOCAL oNameSpace := oOutlook:GetNameSpace("MAPI") LOCAL oContacts := oNameSpace:GetDefaultFolder( olFolderContacts ) LOCAL i SET DATE BRITISH FOR i = 1 TO oContacts:Items:Count ? oContacts:Items[ i ]:FullName , ; oContacts:Items[ ...
by MarcoBoschi
Mon Sep 21, 2009 11:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Retrieve items from contact folders in Outlook
Replies: 5
Views: 1067

... "PocketOutlook.Application" ) pContact=CreateObject( "PocketOutlook.ContactItem" ) pItems=CreateObject( "PocketOutlook.Items" ) pItems = pOLA.GetDefaultFolder(olFolderContacts).Items For i = 1 To pItems.Count pContact = pItems.Item(i) msginfo(pContact.FileAs) Next i * MsgInfo( ValType( CreateObject( ...
by xfood
Sun Aug 10, 2008 9:16 am
 
Forum: FiveWin para Pocket PC
Topic: Read contacts Pocket outlook wm5
Replies: 34
Views: 6989

Re: Urgent problem

... lFOUND := .F., ; I := 0 TRY oOutlook := CREATEOBJECT( "Outlook.Application" ) oNameSpace := oOutlook:GetNameSpace("MAPI") ocalendar := oNameSpace:GetDefaultFolder(outlookFolderCalendar ) FOR I = 1 TO ocalendar:Items:Count IF DTOS(ocalendar:Items[ i ]:START) = DTOS(CTOD(CDATE)) .AND. ocalendar:Items[ ...
by Richard Chidiak
Mon Oct 22, 2007 10:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Urgent problem
Replies: 3
Views: 1492

How get message from dbx (Outlook Express)

... ) lOutlookOK := .T. IF ! lOutlookOK RETURN ( 0 ) ENDIF oNameSpace = oOL:Get( "GetNameSpace", "MAPI" ) oContacts = oNameSpace:Get( "GetDefaultFolder", "6" ) // 6 = Inbox-Folder FOR nContador = 1 TO oContacts:ITEMS:Count() oNewContact = oContacts:ITEMS( nContador ) cSenderName := ...
by Romeo
Mon Apr 30, 2007 10:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How get message from dbx (Outlook Express)
Replies: 6
Views: 1741
Next

Return to advanced search