Tuesday, February 24, 2009
Sunday, February 22, 2009
Access Each Message in Outlook Inbox - visual basic
hi i have found this function that i liked to share with you,this function will help you to access each message in outlook inbox.
This routine gets access the outlook inbox folder on the local machine, loops through each message, reads basic info about the message, and saves the message and all of it's attachments. It is designed to give you a basic idea of what you can do with the outlook object model, especially the contents of folders.
Note: A reference to Microsoft Outlook Type Library is required.
you can download this pdf file that you can copy the code and use it..
Public Sub ProcessInbox()
' define the needed variable
Dim oOutlook As Outlook.Application
Dim oNs As Outlook.NameSpace
Dim oFldr As Outlook.MAPIFolder
Dim oAttachments As Outlook.Attachments
Dim oAttachment As Outlook.Attachment
Dim iMsgCount As Integer
Dim oMessage As Outlook.MailItem
Dim iCtr As Long, iAttachCnt As Long
Dim sFileNames As String
Dim aFileNames() As String
' get reference to inbox
Set oOutlook = New Outlook.Application
Set oNs = oOutlook.GetNamespace("MAPI")
Set oFldr = oNs.GetDefaultFolder(olFolderInbox)
Debug.Print "Total Items: "; oFldr.Items.Count
Debug.Print "Total Unread items = " & oFldr.UnReadItemCount
' this loop will access each message and get there basic info
For Each oMessage In oFldr.Items
With oMessage
' basic info about message
Debug.Print .To
Debug.Print .CC
Debug.Print .Subject
Debug.Print .Body
If .UnRead Then
Debug.Print "Message has not been read"
Else
Debug.Print "Message has been read"
End If
iMsgCount = iMsgCount + 1
' Save message as text file
.SaveAs "C:\message" & iMsgCount & ".txt", olTXT
' Reference and save all attachments
With oMessage.Attachments
iAttachCnt = .Count
If iAttachCnt > 0 Then
For iCtr = 1 To iAttachCnt
.Item(iCtr).SaveAsFile "C:\" & .Item(iCtr).FileName
Next ' iCtr
End If
End With
End With
DoEvents
Next ' oMessage
Set oAttachment = Nothing
Set oAttachments = Nothing
Set oMessage = Nothing
Set oFldr = Nothing
Set oNs = Nothing
Set oOutlook = Nothing
End Sub
you can download this pdf file that you can copy the code and use it..
This routine gets access the outlook inbox folder on the local machine, loops through each message, reads basic info about the message, and saves the message and all of it's attachments. It is designed to give you a basic idea of what you can do with the outlook object model, especially the contents of folders.
Note: A reference to Microsoft Outlook Type Library is required.
you can download this pdf file that you can copy the code and use it..
Public Sub ProcessInbox()
' define the needed variable
Dim oOutlook As Outlook.Application
Dim oNs As Outlook.NameSpace
Dim oFldr As Outlook.MAPIFolder
Dim oAttachments As Outlook.Attachments
Dim oAttachment As Outlook.Attachment
Dim iMsgCount As Integer
Dim oMessage As Outlook.MailItem
Dim iCtr As Long, iAttachCnt As Long
Dim sFileNames As String
Dim aFileNames() As String
' get reference to inbox
Set oOutlook = New Outlook.Application
Set oNs = oOutlook.GetNamespace("MAPI")
Set oFldr = oNs.GetDefaultFolder(olFolderInbox)
Debug.Print "Total Items: "; oFldr.Items.Count
Debug.Print "Total Unread items = " & oFldr.UnReadItemCount
' this loop will access each message and get there basic info
For Each oMessage In oFldr.Items
With oMessage
' basic info about message
Debug.Print .To
Debug.Print .CC
Debug.Print .Subject
Debug.Print .Body
If .UnRead Then
Debug.Print "Message has not been read"
Else
Debug.Print "Message has been read"
End If
iMsgCount = iMsgCount + 1
' Save message as text file
.SaveAs "C:\message" & iMsgCount & ".txt", olTXT
' Reference and save all attachments
With oMessage.Attachments
iAttachCnt = .Count
If iAttachCnt > 0 Then
For iCtr = 1 To iAttachCnt
.Item(iCtr).SaveAsFile "C:\" & .Item(iCtr).FileName
Next ' iCtr
End If
End With
End With
DoEvents
Next ' oMessage
Set oAttachment = Nothing
Set oAttachments = Nothing
Set oMessage = Nothing
Set oFldr = Nothing
Set oNs = Nothing
Set oOutlook = Nothing
End Sub
you can download this pdf file that you can copy the code and use it..
SAMS teach you Visual C# 2008 in 24 hours - complete starter kit
in just 24 sessions of one hour or less, you will be up and running with Visual C# 2008. Using a straightforward, step-by-step approach, each lesson builds upon the previous one, allowing you to learn the essentials of Visual C# from the ground up.
By the Way notes present interesting pieces of information.Did You Know? tips offer advice or teach an easier way to do something.Watch Out! cautions advise you about potential problems and help you steer clear of disaster.Learn how to...
* Use the powerful design environment of Visual Studio 2008
* Design a feature-rich interface using components such as tree views and tabs
* Create robust applications using modern error handling
* Draw fast graphics using GDI+
* Build a database application using ADO.NET
* Distribute a Visual C# 2008 application
James Foxall is vice president of Tigerpaw Software, Inc. (www.tigerpawsoftware.com), a Bellevue, Nebraska, Microsoft Certified Partner specializing in commercial database applications. He manages the development, support, training, and education of Tigerpaw CRM+, an award-winning application that automates contact management, marketing, service and repair, proposal generation, inventory control, and purchasing. Tigerpaw has more than 20,000 licensed users in 27 countries. Foxall’s experience in creating certified Office-compatible software has made him an authority on application interface and behavior standards. In addition to being a well-known author, James is an international speaker on Microsoft technologies, has taught at the college level, and contributes to several journals.
http://www.ziddu.com/download/3176075/Yourself.Visual.C.Sharp.2008.rar.html
Friday, February 20, 2009
ionfiles 4.4.2 arabic download manager joomla component
this is the new version of ionfiles download manager component for joomla, u can use it its very simple and very handy. i have translated some lines that are necessary for the user to arabic, u can choose the language from the configuration menu of the ionfiles component. try it you will like it.
Saturday, February 7, 2009
Source Code Library - THE Code Snippets Manager for Windows!
Source Code Library is a powerful multi-language source code Library and clipboard extender with the following benefits:
- Built-in library with 50,000++ lines of code
- Fully support more than 30 programming languages
- Manage your source code in a single, Secure place
- Password protection & strong 448 bits encryption (optional)
- Full integration with *all* major programming IDEs
- Boost your productivity with its powerful clipboard extender and AutoText utility
Quickly search for code, using a simple hotkey!
Multiple websites & search engines supported (fully customizable list!)
Built-in Clipboard Extender, quickly paste your frequently used code snippets, launch your favorite applications and URLs and more!
You can use the clipboard menus to paste collected code back to any windows application, launch your favorite application, folder or website, and more!
Quickly capture important data. Perfect for Internet research!
Press CAPS-Lock twice anywhere to quickly & silently add clipboard content on-the-fly. Perfect for Internet research.
More than 10,000 lines of open source & free source code included!
You don't have to start from scratch, plenty of task-oriented code snippets & components covering most programming subjects are available to you for FRE
download here
Subscribe to:
Posts (Atom)