![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
All,
I have an Outlook 2003 SP3 with Exchange 2003 Sp1 environment and I've noticed there's a limitation to the number of contacts I can create or update programmatically. The magic number seems to be between 244 and 248. I need to tell as well that I have a custom form for the contacts but this does not seem to be a problem on my lab where I am running Outlook 2003 SP3 in stand alone mode. I can edit create/edit thousands of contacts using the same custom form. I've also increased the cache size on both sides but in stand alone mode, Outlook worked fine even with the 2048 cache size. Any thoughts would be appreciated. Here is the code I use to create a bunch of contacts. This code fails every 24+ contacts. Sub CreateContacts() Dim myOlApp As New Outlook.Application Dim myNameSpace As Outlook.NameSpace Dim myFolder Dim myContact As Outlook.ContactItem Set myNameSpace = myOlApp.GetNamespace("MAPI") Set myFolder = myNameSpace.GetDefaultFolder(olFolderContacts) myName = 0 Do Until myName = 500 Set myContact = myOlApp.CreateItem(olContactItem) myContact.BusinessAddressState = "WA" myContact.FullName = "User" & myName myContact.Email1Address = myContact.FullName & " myName = myName + 1 myContact.Save Loop MsgBox myName & " were created." Set myNameSpace = Nothing Set myOlApp = Nothing Set myFolder = Nothing End Sub |
#2
|
|||
|
|||
![]()
Update:
When I run my VSTO AddIn against an Outlook 2007 client on my Exchange 2003 env, I get the following error: "Your server administrator has limited the number of items you can open simultaneously. Try closing messages you have opened or removing attachments and images from unsent mesagges you are composing." Not sure where I can change this limitation in Exchange 2003. "Rafael" wrote: All, I have an Outlook 2003 SP3 with Exchange 2003 Sp1 environment and I've noticed there's a limitation to the number of contacts I can create or update programmatically. The magic number seems to be between 244 and 248. I need to tell as well that I have a custom form for the contacts but this does not seem to be a problem on my lab where I am running Outlook 2003 SP3 in stand alone mode. I can edit create/edit thousands of contacts using the same custom form. I've also increased the cache size on both sides but in stand alone mode, Outlook worked fine even with the 2048 cache size. Any thoughts would be appreciated. Here is the code I use to create a bunch of contacts. This code fails every 24+ contacts. Sub CreateContacts() Dim myOlApp As New Outlook.Application Dim myNameSpace As Outlook.NameSpace Dim myFolder Dim myContact As Outlook.ContactItem Set myNameSpace = myOlApp.GetNamespace("MAPI") Set myFolder = myNameSpace.GetDefaultFolder(olFolderContacts) myName = 0 Do Until myName = 500 Set myContact = myOlApp.CreateItem(olContactItem) myContact.BusinessAddressState = "WA" myContact.FullName = "User" & myName myContact.Email1Address = myContact.FullName & " myName = myName + 1 myContact.Save Loop MsgBox myName & " were created." Set myNameSpace = Nothing Set myOlApp = Nothing Set myFolder = Nothing End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2003 Security Settings on Terminal Server | Island Girl | Outlook - Installation | 3 | June 28th 07 01:10 AM |
Outlook 2003 On Windows 2000 Server w/ Terminal Services | Jeff | Outlook - Installation | 0 | March 6th 07 06:03 PM |
Outlook forms running on Windows 2003 Terminal Server | Marc-andre Poupier | Outlook - Using Forms | 0 | April 12th 06 08:04 PM |
New Outlook 2003 profiles on Terminal Server 2003 | John W | Outlook - Installation | 0 | February 28th 06 07:22 PM |
Outlook 2003 will not connect to Exchange 2003 via terminal server session. | Bagger | Outlook - General Queries | 2 | January 25th 06 06:28 AM |