Click here to Skip to main content
15,890,527 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Printing a bill Pin
Duncan Edwards Jones29-Jun-08 23:36
professionalDuncan Edwards Jones29-Jun-08 23:36 
Questiondotnet nuke simple app need (4.8.4) Pin
palanirajan29-Jun-08 12:48
palanirajan29-Jun-08 12:48 
AnswerRe: dotnet nuke simple app need (4.8.4) Pin
Paul Conrad7-Jul-08 14:33
professionalPaul Conrad7-Jul-08 14:33 
QuestionFileIOPermission PermitOnly() & MessageBox.Show() Pin
cSharpJR28-Jun-08 0:35
cSharpJR28-Jun-08 0:35 
AnswerRe: FileIOPermission PermitOnly() & MessageBox.Show() Pin
Luc Pattyn28-Jun-08 1:42
sitebuilderLuc Pattyn28-Jun-08 1:42 
AnswerRe: FileIOPermission PermitOnly() & MessageBox.Show() Pin
cSharpJR28-Jun-08 2:45
cSharpJR28-Jun-08 2:45 
QuestionI wonder why everything couldn't have been a weak event Pin
Rei Miyasaka26-Jun-08 11:39
Rei Miyasaka26-Jun-08 11:39 
QuestionGet distribution list address using Outlook 12.0 Object Library Pin
Glenn E. Lanier II26-Jun-08 9:20
Glenn E. Lanier II26-Jun-08 9:20 
I'm trying to get the email addresses contained in a distribution list in a public folder using the Outlook 12.0 Object Library.

I can get the distribution list (as Outlook._DistListItem), but can not figure out how to get the addresses contained in it. Does anyone have an idea/pointer that would help?

using Outlook = Microsoft.Office.Interop.Outlook;

outlook = new Outlook.Application();
Outlook._NameSpace olNS = outlook.GetNamespace("MAPI");
Outlook.MAPIFolder oPublicFolder = olNS.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olPublicFoldersAllPublicFolders);

Outlook.MAPIFolder tiFolder = null;
foreach (Outlook.MAPIFolder currentFolder in oPublicFolder.Folders)
{
   if ("DesiredFolder" == currentFolder.Name)
   {
      tiFolder = currentFolder;
      break;
   }
}
if (null != tiFolder)
{
   Outlook._Items oItems = tiFolder.Items;
   for (int i = 1; i <= oItems.Count; i++)
   {
      try
      {
         Outlook._ContactItem oContact = (Outlook._ContactItem)oItems[i];
      }
      catch (Exception ex)
      {
         try
	 {
	    Outlook._DistListItem distributionList = (Outlook._DistListItem)oItems[i];
            // distributionList is thing I want; need to get members
            // :confused: :confused: :confused:
         }
         catch (Exception ex1)
	 {
         }
      }
}

QuestionAccess is denied while export crystal report Pin
Member 183766126-Jun-08 0:18
Member 183766126-Jun-08 0:18 
AnswerRe: Access is denied while export crystal report Pin
Christian Graus26-Jun-08 1:21
protectorChristian Graus26-Jun-08 1:21 
Questionhow would you do this using TDD? Pin
mr_lasseter25-Jun-08 14:39
mr_lasseter25-Jun-08 14:39 
AnswerRe: how would you do this using TDD? Pin
led mike26-Jun-08 5:05
led mike26-Jun-08 5:05 
Questioniexplore.exe.config Pin
Member 450727925-Jun-08 13:35
professionalMember 450727925-Jun-08 13:35 
AnswerRe: iexplore.exe.config Pin
Christian Graus25-Jun-08 23:39
protectorChristian Graus25-Jun-08 23:39 
AnswerRe: iexplore.exe.config Pin
Abhijit Jana28-Jun-08 0:24
professionalAbhijit Jana28-Jun-08 0:24 
AnswerRe: iexplore.exe.config Pin
Paul Conrad28-Jun-08 8:03
professionalPaul Conrad28-Jun-08 8:03 
QuestionGarbage Collector destroys my unmanged data Pin
ctoma200525-Jun-08 4:15
ctoma200525-Jun-08 4:15 
QuestionRe: Garbage Collector destroys my unmanged data Pin
Mark Salsbery25-Jun-08 10:32
Mark Salsbery25-Jun-08 10:32 
AnswerRe: Garbage Collector destroys my unmanged data Pin
ctoma200525-Jun-08 21:53
ctoma200525-Jun-08 21:53 
GeneralRe: Garbage Collector destroys my unmanged data Pin
ctoma200526-Jun-08 2:00
ctoma200526-Jun-08 2:00 
GeneralRe: Garbage Collector destroys my unmanged data Pin
Mark Salsbery26-Jun-08 4:44
Mark Salsbery26-Jun-08 4:44 
QuestionRe: Garbage Collector destroys my unmanged data Pin
Mark Salsbery26-Jun-08 5:11
Mark Salsbery26-Jun-08 5:11 
AnswerRe: Garbage Collector destroys my unmanged data Pin
ctoma200526-Jun-08 6:09
ctoma200526-Jun-08 6:09 
GeneralRe: Garbage Collector destroys my unmanged data Pin
Mark Salsbery26-Jun-08 6:33
Mark Salsbery26-Jun-08 6:33 
QuestionWhat is the .Net equivalent of GetSystemMetrics(SM_CXVSCROLL)? Pin
KeesVer24-Jun-08 23:55
KeesVer24-Jun-08 23:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.