473,884 Members | 2,235 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Determine Language of Outlook folders?

I need to know if I can look for "Inbox" or as in Swedish "Inkorgen". .. or
can one asume I that the Inbox has a special index if I loop thru the
folders?

/Lars Netzel
Nov 21 '05 #1
3 1489
Lars,
The "easiest" way to get the inbox (with the OOM - Outlook Object Model) is
to use Namespace.GetDe faultFolder(olD efaultFolders.O lFolderInbox).

Something like:

Imports Outlook = Microsoft.Offic e.Interop.Outlo ok

Dim application As New Outlook.Applica tion
Dim ns As Outlook.NameSpa ce = application.Get Namespace("MAPI ")
Dim inbox As Outlook.MAPIFol der =
ns.GetDefaultFo lder(Outlook.Ol DefaultFolders. olFolderInbox)
Hope this helps
Jay

"Lars Netzel" <ui****@adf.s e> wrote in message
news:e%******** *******@TK2MSFT NGP15.phx.gbl.. .
|I need to know if I can look for "Inbox" or as in Swedish "Inkorgen". .. or
| can one asume I that the Inbox has a special index if I loop thru the
| folders?
|
| /Lars Netzel
|
|
Nov 21 '05 #2
It sort of help but when you have MAPI solution you have to have a Personal
Folders too and then the Defrautl inbox for some reason ins the Inbox in the
Personal Folders (which is not the one where new emails go... but I have
solved it with hardcode and a preferenses thing in the program where one can
give the exakt name for the folder to look in.
"Jay B. Harlow [MVP - Outlook]" <Ja************ @tsbradley.net> wrote in
message news:OM******** ********@TK2MSF TNGP12.phx.gbl. ..
Lars,
The "easiest" way to get the inbox (with the OOM - Outlook Object Model)
is
to use Namespace.GetDe faultFolder(olD efaultFolders.O lFolderInbox).

Something like:

Imports Outlook = Microsoft.Offic e.Interop.Outlo ok

Dim application As New Outlook.Applica tion
Dim ns As Outlook.NameSpa ce = application.Get Namespace("MAPI ")
Dim inbox As Outlook.MAPIFol der =
ns.GetDefaultFo lder(Outlook.Ol DefaultFolders. olFolderInbox)
Hope this helps
Jay

"Lars Netzel" <ui****@adf.s e> wrote in message
news:e%******** *******@TK2MSFT NGP15.phx.gbl.. .
|I need to know if I can look for "Inbox" or as in Swedish "Inkorgen". ..
or
| can one asume I that the Inbox has a special index if I loop thru the
| folders?
|
| /Lars Netzel
|
|

Nov 21 '05 #3
It sort of help but when you have MAPI solution you have to have a Personal
Folders too and then the Defrautl inbox for some reason ins the Inbox in the
Personal Folders (which is not the one where new emails go... but I have
solved it with hardcode and a preferenses thing in the program where one can
give the exakt name for the folder to look in.
"Jay B. Harlow [MVP - Outlook]" <Ja************ @tsbradley.net> wrote in
message news:OM******** ********@TK2MSF TNGP12.phx.gbl. ..
Lars,
The "easiest" way to get the inbox (with the OOM - Outlook Object Model)
is
to use Namespace.GetDe faultFolder(olD efaultFolders.O lFolderInbox).

Something like:

Imports Outlook = Microsoft.Offic e.Interop.Outlo ok

Dim application As New Outlook.Applica tion
Dim ns As Outlook.NameSpa ce = application.Get Namespace("MAPI ")
Dim inbox As Outlook.MAPIFol der =
ns.GetDefaultFo lder(Outlook.Ol DefaultFolders. olFolderInbox)
Hope this helps
Jay

"Lars Netzel" <ui****@adf.s e> wrote in message
news:e%******** *******@TK2MSFT NGP15.phx.gbl.. .
|I need to know if I can look for "Inbox" or as in Swedish "Inkorgen". ..
or
| can one asume I that the Inbox has a special index if I loop thru the
| folders?
|
| /Lars Netzel
|
|

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5745
by: Kurt | last post by:
Hi We are developing an off-the-shelf software suite for a certain business sector. Most of the program is simply a GUI on top of some .mdb files. Its a .net application written in c# One major requirement is "Outlook Integration". The Outlook contact folders are to be used for contact management I want to know what is the standard way to do this these days. Most of the information in MSDN seems rather old I first used the Outlook...
4
17485
by: lauren quantrell | last post by:
Is there a way to open the MS Outlook address book using VBA and then be able to do something with the return value? I want users to click an icon to open the Outlook address book then when an address is selected, populate an Access field with the address. Is this remotely possible? Thanks, lq
9
3097
by: George McCullen | last post by:
I have an Outlook 2003 using Exchange Server 2003 Public Contacts Folder containing 20,000 Contacts. I am writing a VB .Net 2003 program that loops through all the contacts in a "for each oCt in oItems" loop. After about 250 contacts, the program gives an InvalidCastException Error on the for each loop. I notice that Outlook's memory keeps increasing (using the task manager) until it reaches around 20,000K. When I run the program a second...
3
4962
by: Li Pang | last post by:
Hi, I wrote the following codes to read messages. They work fine for Outlook 2002 but fails for 2003. My felling it may be a bug of Outlook 2003. Anybody has experience on that? Thanks in advance Dim oOutlook As Outlook.Application Dim oNS As Outlook.NameSpace Dim oStores As Outlook.Folders Dim oStore As Outlook.MAPIFolder
5
3333
by: Arno R | last post by:
Hi all, I need to get at specific (shared) agenda-data from MS outlook 2003. I need every day to get the scheduled 'appointments' for some rooms to Access. In Access I will show the time-periods that the rooms are booked for that day. I know how to code all this in Access. I can show some testdata for 5 rooms quite nicely on a form. I never ever needed to use Outlook-to-Access before, so I need a good starting point to get the data.
1
7076
by: PhilD | last post by:
My C#.NET console app checks a public folder every 24 hours for incoming emails. For each unread email in the folder, it copies any attachments to the network, then loads the contents of these files into a SQL Server database, and marks the email as read. My problem is that in the loop that checks for all the Unread emails in the folder, as I spin through the loop, the number of unread items is being reset for every iteration. So...
2
6209
by: beeswax | last post by:
Hi, Does anyone knows how to read e-mails from a specific folders in outlook? I only found out how to read the mails from the inbox folder and how to list all available folder. I just don't found a way to access my mails from the other folders. Can anyone help me?
0
1633
by: jazeelkm | last post by:
Hi , I am developing a windows application using C#. In that I want to display all the outlook profiles in a listbox and on selecting one, The folder structure should be displayed on a treeview control. I can display all the profiles in the listbox and on its changedindex event I am calling the function to load all outlook folders(and add that to the treeview). When i run the application first time it is working properly , but when i...
4
6468
by: infomage27 | last post by:
I have tried scripting this with rules and VBA, now trying with C# but still failing. (code is exploratory, so please excuse the terribleness) maybe someone here will show me the error of my code... sending an email by hand - everything works as expected (rules, VBA, etc are all applied). sending an email from code (C#, external VBA, etc) has the messages saving in Sent Items regardless of any other settings or configurations (up to...
0
9954
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10769
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10869
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9591
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7985
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7137
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5808
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6009
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.