PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Re: VB6 Getting outlook folder

Reply

Re: VB6 Getting outlook folder

 
Thread Tools Rate Thread
Old 12-12-2006, 05:12 PM   #1
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: VB6 Getting outlook folder


You can use the Namespace.GetDefaultFolder method to return any mailbox default folder as a MAPIFolder object. Otherwise, you can use the code at http://www.outlookcode.com/d/code/getfolder.htm to walk the folder hierarchy and return the MAPIFolder corresponding to a given path string.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Xiao" <Xiao@discussions.microsoft.com> wrote in message newsB10EEC6-A085-4AA8-8CCD-0A8444DB4819@microsoft.com...
> Hi everyone, I'm quite new in this issue. I've been found out some
> information about how to get the mails from outlook. but it's a little bit
> hassle.
> In my case, we've got a Exchange server and I'd like to get the information
> of some specific fodlers in my mail account.
> Can anyone help me , recommending a good link or a good solutions?
>
> Thanks

  Reply With Quote
Old 13-12-2006, 01:03 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: VB6 Getting outlook folder

Are you interested in writing a client application that each user will use or a server application with no client component? If you're writing a client application, whether the users run Outlook through Citrix or have Exchange accounts is largely irrelevant. Note that CDO is not installed by default on clients, but can be added.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Xiao" <Xiao@discussions.microsoft.com> wrote in message news:5E036191-5E0F-4E7D-9772-E2B3537762BE@microsoft.com...
> Sorry, maybe i wasn't very clear in my previous post. My problem is that we
> are working with a Exchange server and the application is going to work
> remotely through CITRIX, yes i know, it's a little bit confusing, sorry.Then
> can i connect to a exchange server using the outlook object model or maybe
> I'd need to used the CDO library?.
>
> Thanks again
>
> "Xiao" wrote:
>
>> Thanks Sue,
>> But one thing, i was talking with some mates and they recommend to use CDO
>> as we have a exchange server. This methods and example look good, but they
>> work properly over the exchange server. Is there any other solution with CDO.
>>
>> Thanks a lot again.
>>
>> "Sue Mosher [MVP-Outlook]" wrote:
>>
>> > You can use the Namespace.GetDefaultFolder method to return any mailbox default folder as a MAPIFolder object. Otherwise, you can use the code at http://www.outlookcode.com/d/code/getfolder.htm to walk the folder hierarchy and return the MAPIFolder corresponding to a given path string.
>> >
>> > "Xiao" <Xiao@discussions.microsoft.com> wrote in message newsB10EEC6-A085-4AA8-8CCD-0A8444DB4819@microsoft.com...
>> > > Hi everyone, I'm quite new in this issue. I've been found out some
>> > > information about how to get the mails from outlook. but it's a little bit
>> > > hassle.
>> > > In my case, we've got a Exchange server and I'd like to get the information
>> > > of some specific fodlers in my mail account.
>> > > Can anyone help me , recommending a good link or a good solutions?


  Reply With Quote
Old 13-12-2006, 03:15 PM   #3
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: VB6 Getting outlook folder

What is annoying is that you apparently have not learned how to use the object browser (F2 in VBA), Outlook developer Help, or the Microsoft Knowledge Base to look up such basics as the names of objects and collections. Each Outlook MAPIFolder collection has an Items collection. The MSKB has a detailed article on how to write code to work with Items and Folders, to supplement the articles in Help.

CDO would be faster for processing large numbers of items, but would be subject to Outlook security prompts.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Xiao" <Xiao@discussions.microsoft.com> wrote in message news:35AD80D6-169F-47EB-87E1-DA58EFEE2A0E@microsoft.com...
> I'm writing a client application, i hope that this can help me.
> just last question, how i can get the mails in the folder?
> sorry if i'm very annnoying, i owe u one.
>
> thanks
>
>
> "Sue Mosher [MVP-Outlook]" wrote:
>
>> Are you interested in writing a client application that each user will use or a server application with no client component? If you're writing a client application, whether the users run Outlook through Citrix or have Exchange accounts is largely irrelevant. Note that CDO is not installed by default on clients, but can be added.


>>
>> "Xiao" <Xiao@discussions.microsoft.com> wrote in message news:5E036191-5E0F-4E7D-9772-E2B3537762BE@microsoft.com...
>> > Sorry, maybe i wasn't very clear in my previous post. My problem is that we
>> > are working with a Exchange server and the application is going to work
>> > remotely through CITRIX, yes i know, it's a little bit confusing, sorry.Then
>> > can i connect to a exchange server using the outlook object model or maybe
>> > I'd need to used the CDO library?.
>> >
>> > Thanks again
>> >
>> > "Xiao" wrote:
>> >
>> >> Thanks Sue,
>> >> But one thing, i was talking with some mates and they recommend to use CDO
>> >> as we have a exchange server. This methods and example look good, but they
>> >> work properly over the exchange server. Is there any other solution with CDO.
>> >>
>> >> Thanks a lot again.
>> >>
>> >> "Sue Mosher [MVP-Outlook]" wrote:
>> >>
>> >> > You can use the Namespace.GetDefaultFolder method to return any mailbox default folder as a MAPIFolder object. Otherwise, you can use the code at http://www.outlookcode.com/d/code/getfolder.htm to walk the folder hierarchy and return the MAPIFolder corresponding to a given path string.
>> >> >
>> >> > "Xiao" <Xiao@discussions.microsoft.com> wrote in message newsB10EEC6-A085-4AA8-8CCD-0A8444DB4819@microsoft.com...
>> >> > > Hi everyone, I'm quite new in this issue. I've been found out some
>> >> > > information about how to get the mails from outlook. but it's a little bit
>> >> > > hassle.
>> >> > > In my case, we've got a Exchange server and I'd like to get the information
>> >> > > of some specific fodlers in my mail account.
>> >> > > Can anyone help me , recommending a good link or a good solutions?

>>
>>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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