Click here to Skip to main content
15,909,896 members
Home / Discussions / C#
   

C#

 
GeneralRe: end of string in C# Pin
Guffa27-Jan-09 22:15
Guffa27-Jan-09 22:15 
Questioncan we do row span and column span of c# datagrid Pin
s_aslam9826-Jan-09 22:25
s_aslam9826-Jan-09 22:25 
AnswerRe: can we do row span and column span of c# datagrid Pin
MadArtSoft27-Jan-09 1:44
MadArtSoft27-Jan-09 1:44 
QuestionURL into ClipBoard Pin
Member 587250026-Jan-09 21:44
Member 587250026-Jan-09 21:44 
AnswerRe: URL into ClipBoard Pin
benjymous26-Jan-09 22:19
benjymous26-Jan-09 22:19 
QuestionDictionary Classes Pin
Udayaraju26-Jan-09 21:29
Udayaraju26-Jan-09 21:29 
AnswerRe: Dictionary Classes Pin
S. Senthil Kumar26-Jan-09 21:34
S. Senthil Kumar26-Jan-09 21:34 
QuestionOutlook.MailItem Issues Pin
Sun Rays26-Jan-09 20:25
Sun Rays26-Jan-09 20:25 
Hello All,
I want to read all mail of one folder from outlook and here is code at which line i am getting error....


Outlook.Items MailItems;

MailItems = .......

for (int i = MailItems.Count; i >= 1; i += -1)
{
Outlook.MailItem mitem;
mitem = (Outlook.MailItem)MailItems.Item(i); //// I AM GETTING error here....
}



When casting getting below exception..
Tried lot from Google and other sites not getting appropriate solution.


Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Outlook.MailItem'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063034-0000-0000-C000-000000000046}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."


Thanks,
Sun Rays

To get something you must have to try once.


My Articles

AnswerRe: Outlook.MailItem Issues Pin
dennissal10-Mar-10 1:50
dennissal10-Mar-10 1:50 
GeneralRe: Outlook.MailItem Issues Pin
Ed Arnone2-May-11 8:15
Ed Arnone2-May-11 8:15 
QuestionExtracting attachments from xml using C# Pin
Reetu Singh26-Jan-09 20:01
Reetu Singh26-Jan-09 20:01 
AnswerRe: Extracting attachments from xml using C# Pin
N a v a n e e t h26-Jan-09 21:05
N a v a n e e t h26-Jan-09 21:05 
GeneralRe: Extracting attachments from xml using C# Pin
Reetu Singh26-Jan-09 21:11
Reetu Singh26-Jan-09 21:11 
GeneralRe: Extracting attachments from xml using C# Pin
SeMartens26-Jan-09 22:10
SeMartens26-Jan-09 22:10 
GeneralRe: Extracting attachments from xml using C# Pin
Reetu Singh26-Jan-09 22:24
Reetu Singh26-Jan-09 22:24 
GeneralRe: Extracting attachments from xml using C# Pin
Reetu Singh27-Jan-09 1:20
Reetu Singh27-Jan-09 1:20 
GeneralRe: Extracting attachments from xml using C# Pin
SeMartens27-Jan-09 2:02
SeMartens27-Jan-09 2:02 
GeneralRe: Extracting attachments from xml using C# Pin
Reetu Singh27-Jan-09 19:16
Reetu Singh27-Jan-09 19:16 
GeneralRe: Extracting attachments from xml using C# Pin
SeMartens27-Jan-09 21:00
SeMartens27-Jan-09 21:00 
Questionnull DateTime and NHibernate Pin
devvvy26-Jan-09 19:28
devvvy26-Jan-09 19:28 
AnswerRe: null DateTime and NHibernate Pin
SeMartens26-Jan-09 21:08
SeMartens26-Jan-09 21:08 
AnswerRe: null DateTime and NHibernate Pin
Kythen27-Jan-09 10:53
Kythen27-Jan-09 10:53 
GeneralRe: null DateTime and NHibernate Pin
devvvy27-Jan-09 14:56
devvvy27-Jan-09 14:56 
QuestionYahoo API Pin
prabhatmishra26-Jan-09 19:25
prabhatmishra26-Jan-09 19:25 
AnswerRe: Yahoo API Pin
benjymous26-Jan-09 22:21
benjymous26-Jan-09 22:21 

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.