473,388 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

how to delete mailitems from outlook using redemption i vb.net

Hi every one ,

I am working on outlook i need to delete mail items from inbox of a pst which is added to outlook profile

here is ma code

Expand|Select|Wrap|Line Numbers
  1. Dim Session As Redemption.RDOSession
  2.                     Session = CreateObject("Redemption.RDOSession")
  3.                     NamSpace.Logon()
  4.                     Dim Folder As Redemption.MAPIFolder
  5.                     Dim Msg As Redemption.RDOMail
  6.                     Folder = Session.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)
  7.                     For i = 1 To Folder.Items.Count
  8.  
  9.                         Msg = Folder.Items.Item(i)
  10.                         Msg.Delete()
  11.  
  12.                         MessageBox.Show("Msg Deleted")
  13.  
  14.                     Next
i am getting a error as Public member 'Session' on type 'RDOSession' not found.

plz helop me to get ride on it

its very urgent plz help me to deal with deletion of mail items using redemption
May 12 '10 #1
1 2596
tlhintoq
3,525 Expert 2GB
You made a variable called Session of type Redemption.RDOSession, then you are getting a property within that called Session, as well. Session.session

Sound like a confusion waiting to happen. Do you have a property of Redemption.RDOSession.Session? Because the error message says you don't.
May 13 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: windandwaves | last post by:
Hi Folk Some of my clients asked me to create "fancy emails" for them (aka html formatted emails). I know how to make a nice html document, but I had trouble creating a simple way to provide...
6
by: ashasprabhu | last post by:
hi, how to delete a file using asp.net with vb.net
1
by: =?Utf-8?B?U3RldmUgUmFuZGFsbA==?= | last post by:
Hi, Does anyone have any code samples (or links to) for sending an email message via outlook using late binding? Many thanks.
0
by: =?Utf-8?B?U3RldmUgUmFuZGFsbA==?= | last post by:
Hi, Does anyone have any code samples in C# (or links to) for sending an email message via outlook using late binding? Many thanks.
0
by: syedi20 | last post by:
Hi, I am doing a program in which I send emails from ASP.net page, the mail server used is exchange server. I am using Redemption COM so that I can send email with voting buttons, Redemption works...
0
by: bamboo21 | last post by:
How can i change account in outlook using visual basic? what's the code for this?
0
by: mkhan | last post by:
Hi, i have been having trouble how to open the To Contacts list (address book) of a mail message in outlook using vb.net from where the user would be able to select a email address and would be...
1
by: Zuhaib Hyder | last post by:
how to delete client file using c# or javascript ? file delete prmissions are already given?
3
by: ganesh22 | last post by:
Hi, how to open Microsoft Outlook using C# code? bcoz my requirement is there is a linkbutton in gridview.that linkbutton text is one email id. when i click that link button one Outlook comppose...
0
by: Big Daddy | last post by:
I am trying to do all my DB access through LINQ. For example, I am trying to delete a record from the JobQueue table. There’s a couple ways I could do this: 1. Method 1 – The disadvantage is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...

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.