 |
|
 |
Thanks to the folks at SourceForge, you can access the updated v1.2 code from http://sourceforge.net/projects/magimsocon/. This release includes a couple structural changes based on feedback here (thanks!) and the ability to save attachments.
If there's a feature you can either suggest or help with (i.e. visual schema-based data mapping), let me know. Cheers,
--
Mathias
|
|
|
|
 |
|
 |
File is corrupted, and has been so since original uplaod, so dont waste time downloading..
|
|
|
|
 |
|
 |
I fixed the zip file now on SourceForge, so sorry for not seeing these posts sooner. I'm without Visual Studio license so I've focused more on the open source toolkits. That being said, the build process may change in the future.
|
|
|
|
 |
|
 |
I am a C++ developer & new to Outlook 2003 programming.
My goal is to customize the Outlook 2003 New Message Form & add some controls (e.g CheckBox) in the Message area.
I would appreciate if you can sugest me if doing it with C# might be a good route.
Also are there any good book avaialble on customizing Outlook.
Thanks
|
|
|
|
 |
|
 |
how can i get Attachments of mails ?
|
|
|
|
 |
|
 |
Just add the code where mails are being fetched..
if(item.Attachments.Count>0)
{
for(int a=1;a<=item.Attachments.Count;a++)
{
Outlook.Attachment att= item.Attachments[a];
att.SaveAsFile(@"c:\temp\" + att.FileName);
}
}
|
|
|
|
 |
|
 |
hi Prakash Kalakoti,
My problem is i don't want to save the attachments I want to open the attachment in another page.
It means i want to open the attachments dynamically.
do u hv any idea for tht?
|
|
|
|
 |
|
 |
Instead I used Sendername. But don't understand if it is the problem of outlook 2000? Does 2003 get it?
|
|
|
|
 |
|
 |
I tried this on Outlook2000. As you mentioned I did got an error because of the reference. After that another error says "foreach statement cannot operate on variables of type 'Outlook.Items' because 'Outlook.Items' does not contain a definition for 'GetEnumerator', or it is inaccessible." What should I do?
|
|
|
|
 |
|
 |
You must use the Item count property
For I as Integer = 0 to Item.Count
'Do some thing
Next I
Forever Developing
|
|
|
|
 |
|
 |
Thanks, the problem is solved.
|
|
|
|
 |
|
 |
how did you corige it plz ?
cause when i use
//foreach (System.Object _item in objFolder.Items)
for(int i=1;i< objFolder.Items.Count;i++)
{
item = (Outlook.AppointmentItem)_item;
i got an eror with _item
|
|
|
|
 |
|
 |
As mentioned in previous posts, Outlook 2000 does not support the GetEnumerator method on folder items. The code snippet should look more like:
objItems = objFolder.Items;
for (int i=0; i < objItems.Count; i++)
{
outlookItem = objItems.GetNext();
try
{
item = (Outlook.AppointmentItem) outlookItem;
}
catch (System.InvalidCastException)
{
// not an AppointmentItem
}
}
The primary change is to set a local instance variable of all the Outlook.Items in the folder.
|
|
|
|
 |
|
 |
Hi,
Great little tool. It cycling short on me though. The first message it found that had an attachment did something wierd. It was actually on the next message that it failed. The cast to (Outlook.MailItem) throw an exception (I assume it wasn't a MailItem)>
I threw a try catch block around it so it didn't kill the for loop.
Any idea on what it might have been? I tried switch of the type of the object, it always says its a ComOjbect. Not very helpfu.
Thanks,
John
|
|
|
|
 |
|
 |
I figured what it is. Its a MeetingItem.
Any idea out how to figure what the item without casting and throwing an exception if its the wrong type?
Thanks,
John
|
|
|
|
 |
|
 |
I am trying to listen for new mail in the Inbox with a special title and then export that data into my SQL data table or into an XML file that I can read into my sql db tables.
This seems to take all inbox items, how do I only get certain mail, t.ex. High Priority Mail or mail with a specific word in the subject field (Order, for example)?
|
|
|
|
 |
|
 |
One thing that was not clear at first to make it work when accessing mail items is that you must state it as MailItem not just item:
item = (Outlook.MailItem)Items.Item(i);
2. Since I was seeing ALL the email messages, I just needed to open and save some email alarm messages coming to my inbox. Thus we agreed on a common subject heading that my program would look for. When looking for specific messages after reading through the mail items you can look for specific information:
this.ItemProcessed();
if(item.Subject == "Production Error")
{
string msg = item.Body;
Console.Writeline(msg);
and then you can deal with the information (read, write, search for additional strings, etc).
|
|
|
|
 |
|
 |
;PThanks,
I had figured that part out---a small but important detail!;)
|
|
|
|
 |
|
 |
hi dawn yoshimura,
you can use the restrict method, if you want to return a collecion of items:
Dim objOutlook As Outlook._Application objOutlook = New Outlook.Application()
Dim objNS As Outlook._NameSpace = objOutlook.Session
Dim objFolder As Outlook.MAPIFolder = _ objNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts)
Dim objContacts As Outlook._Items = objFolder.Items
Dim strCriteria As String = _ "[CompanyName] = 'A. Datum Corporation'"
Dim objADatumitems As Object = objContacts.Restrict(strCriteria)
Dim objADatumitem As Outlook.ContactItem
For Each objADatumitem In objADatumitems
Console.WriteLine(objADatumitem.FullName) Next
or you can use find, to get high priority mails:
Dim objOutlook As Outlook._Application objOutlook = New Outlook.Application()
Dim objNS As Outlook._NameSpace = objOutlook.Session
Dim objFolder As Outlook.MAPIFolder = _ objNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderTasks)
Dim objTasks As Outlook._Items = objFolder.Items
Dim objTask As Outlook._TaskItem = _ objTasks.Find("[Importance] = 'High'")
If objTask Is Nothing Then MsgBox("Nothing Important. Go party!")
Else MsgBox("You have something important to do!")
End If
enjoy coding!
paul pvillaruel@gmail.com
|
|
|
|
 |
|
 |
who logon namespace?
oNS.logon(????)
|
|
|
|
 |
|
 |
When I run the code, I just get the same nonsense information for every item, but the number of items seems to make sense. I cannot recognize the information.
|
|
|
|
 |
|
 |
Hi:
I'm trying to use the sample, to preview all the sent messages, but there is not cast available to the interface returned when getnext() is executed.
Any ideas?
Thanks,
AMS
|
|
|
|
 |
|
 |
Sorry about the previous email.... I don't know what I did the last time I tryed... But today It worked casting the item as an MailItem
AMS
|
|
|
|
 |
|
 |
Hi,
Your code will fail in getContactDataSet() when the Contact folder contains a Delivery Group.
Regards,
Thomas
|
|
|
|
 |
|
 |
I watch the loop in getContactDataSet() (same thing happens with inbox as well) and the same data item keeps coming up. It iterates the correct number of contacts but only outputs one of them every time so I get x records that are all the same.
I have not inserted the addin to "trust" a bit of code so I simply tell Outlook it is ok to allow access for 10 minutes. Not sure if this would be related but it wouldn't seem to be.
I am running Outlook 2003 with latest updates. Anyone got a clue?
Dave
|
|
|
|
 |