A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

DeliverToStore does not work on 2003?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 7th 08, 07:30 AM posted to microsoft.public.outlook.program_vba
Peter Marchert[_2_]
external usenet poster
 
Posts: 12
Default DeliverToStore does not work on 2003?

Hello,

I tried to set the DeliverToStore property in Outlook 2003 SP3 by the
following code:

Sub StoreTest()

Dim objRDOSession As Redemption.RDOSession
Dim objRDOAccount As Redemption.RDOAccount
Dim objRDOStore As Redemption.RDOStore

Set objRDOSession = CreateObject("Redemption.RDOSession")
objRDOSession.MAPIOBJECT = Outlook.Session.MAPIOBJECT
Set objRDOAccount = objRDOSession.Accounts("test")

Set objRDOStore = objRDOSession.Stores.AddPSTStore("c:\test", 1,
"Store for test")
objRDOAccount.DeliverToStore = objRDOStore
objRDOAccount.Save

Set objRDOStore = Nothing
Set objRDOAccount = Nothing
Set objRDOSession = Nothing

End Sub

In the line "objRDOAccount.DeliverToStore = objRDOStore" the error
"Error in IOlkAccount.SetProp: E_ACCT_NOT_FOUND" occurs. The account
object is referenced and the name property for example can be
retrieved.

I tried this on english and german systems with the Redemption version
4.5.0.812.

With 2007 it works fine. On the homepage of Dmitry I read that
"DeliverToFolder" is a specific 2007 method (because this function was
not implemented in earlier versions). Is this also true for the
"DeliverToStore" method which is present in Outlook 2003 and earlier?

Thanks
Peter

--
Infos, Workshops & Software for
Outlook®: www.outlook-stuff.com
Ads
  #2  
Old July 7th 08, 02:31 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default DeliverToStore does not work on 2003?

This is a POP3 account, the "test" account? Have you tried casting your
account object to a RDOPOP3Account object?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Peter Marchert" wrote in message
...
Hello,

I tried to set the DeliverToStore property in Outlook 2003 SP3 by the
following code:

Sub StoreTest()

Dim objRDOSession As Redemption.RDOSession
Dim objRDOAccount As Redemption.RDOAccount
Dim objRDOStore As Redemption.RDOStore

Set objRDOSession = CreateObject("Redemption.RDOSession")
objRDOSession.MAPIOBJECT = Outlook.Session.MAPIOBJECT
Set objRDOAccount = objRDOSession.Accounts("test")

Set objRDOStore = objRDOSession.Stores.AddPSTStore("c:\test", 1,
"Store for test")
objRDOAccount.DeliverToStore = objRDOStore
objRDOAccount.Save

Set objRDOStore = Nothing
Set objRDOAccount = Nothing
Set objRDOSession = Nothing

End Sub

In the line "objRDOAccount.DeliverToStore = objRDOStore" the error
"Error in IOlkAccount.SetProp: E_ACCT_NOT_FOUND" occurs. The account
object is referenced and the name property for example can be
retrieved.

I tried this on english and german systems with the Redemption version
4.5.0.812.

With 2007 it works fine. On the homepage of Dmitry I read that
"DeliverToFolder" is a specific 2007 method (because this function was
not implemented in earlier versions). Is this also true for the
"DeliverToStore" method which is present in Outlook 2003 and earlier?

Thanks
Peter

--
Infos, Workshops & Software for
Outlook®: www.outlook-stuff.com

  #3  
Old July 7th 08, 04:57 PM posted to microsoft.public.outlook.program_vba
Peter Marchert[_2_]
external usenet poster
 
Posts: 12
Default DeliverToStore does not work on 2003?

On 7 Jul., 15:31, "Ken Slovak - [MVP - Outlook]"
wrote:

Thank you for your reply, Ken.

Yes, it is a POP3 account. "Debug.Print objRDOAccount.AccountType"
returns "0".

Peter

This is a POP3 account, the "test" account? Have you tried casting your
account object to a RDOPOP3Account object?

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm

"Peter Marchert" wrote in message

...
Hello,

I tried to set the DeliverToStore property in Outlook 2003 SP3 by the
following code:

Sub StoreTest()

* * Dim objRDOSession As Redemption.RDOSession
* * Dim objRDOAccount As Redemption.RDOAccount
* * Dim objRDOStore As Redemption.RDOStore

* * Set objRDOSession = CreateObject("Redemption.RDOSession")
* * objRDOSession.MAPIOBJECT = Outlook.Session.MAPIOBJECT
* * Set objRDOAccount = objRDOSession.Accounts("test")

* * Set objRDOStore = objRDOSession.Stores.AddPSTStore("c:\test", 1,
"Store for test")
* * objRDOAccount.DeliverToStore = objRDOStore
* * objRDOAccount.Save

* * Set objRDOStore = Nothing
* * Set objRDOAccount = Nothing
* * Set objRDOSession = Nothing

End Sub

In the line "objRDOAccount.DeliverToStore = objRDOStore" the error
"Error in IOlkAccount.SetProp: E_ACCT_NOT_FOUND" occurs. The account
object is referenced and the name property for example can be
retrieved.

I tried this on english and german systems with the Redemption version
4.5.0.812.

With 2007 it works fine. On the homepage of Dmitry I read that
"DeliverToFolder" is a specific 2007 method (because this function was
not implemented in earlier versions). Is this also true for the
"DeliverToStore" method which is present in Outlook 2003 and earlier?

Thanks
Peter

--
Infos, Workshops & Software for
Outlook®:www.outlook-stuff.com


  #4  
Old July 8th 08, 02:30 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default DeliverToStore does not work on 2003?

I think then it's a matter of Outlook 2003 not supporting that.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Peter Marchert" wrote in message
...
On 7 Jul., 15:31, "Ken Slovak - [MVP - Outlook]"
wrote:

Thank you for your reply, Ken.

Yes, it is a POP3 account. "Debug.Print objRDOAccount.AccountType"
returns "0".

Peter

  #5  
Old July 9th 08, 08:58 AM posted to microsoft.public.outlook.program_vba
Peter Marchert[_2_]
external usenet poster
 
Posts: 12
Default DeliverToStore does not work on 2003?

On 8 Jul., 15:30, "Ken Slovak - [MVP - Outlook]"
wrote:

Ok, thanks for your answer.

Peter

I think then it's a matter of Outlook 2003 not supporting that.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm

"Peter Marchert" wrote in message

...
On 7 Jul., 15:31, "Ken Slovak - [MVP - Outlook]"
wrote:

Thank you for your reply, Ken.

Yes, it is a POP3 account. "Debug.Print objRDOAccount.AccountType"
returns "0".

Peter


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
hyperlinks don't work in Outlook 2003 nancy mc Outlook - Installation 0 March 26th 08 01:20 PM
Outlook 2003 shortcuts do not work D.Duck Outlook - General Queries 6 November 9th 07 09:24 PM
Adding a public calendar doesn't work as it should (exch 2003, outlook 2003) Jazz Outlook - Calandaring 1 July 23rd 07 03:24 PM
How do I get my outlook 2003 to work? shakerville Outlook - General Queries 2 July 8th 07 06:44 AM
Outlook 2003 at home to view work email from Exchange server 2003 mnudel Outlook - General Queries 1 April 22nd 07 04:13 AM


All times are GMT +1. The time now is 01:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.