Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralWeb Browser Pin
chrisrowe4-Feb-03 18:44
chrisrowe4-Feb-03 18:44 
GeneralDynamic calls to Dll Pin
Ranjani Rajanikanth4-Feb-03 17:58
Ranjani Rajanikanth4-Feb-03 17:58 
GeneralAutogenerating collections Pin
Domenic Denicola4-Feb-03 16:36
Domenic Denicola4-Feb-03 16:36 
GeneralRe: Autogenerating collections Pin
Chris Austin4-Feb-03 17:04
Chris Austin4-Feb-03 17:04 
QuestionHow to convert a graphics object into Image object Pin
clarkwuzhe4-Feb-03 11:08
clarkwuzhe4-Feb-03 11:08 
AnswerRe: How to convert a graphics object into Image object Pin
Tomas Petricek4-Feb-03 12:05
Tomas Petricek4-Feb-03 12:05 
Generalopening a .msg file in c# Pin
ajma4-Feb-03 8:31
ajma4-Feb-03 8:31 
GeneralRe: opening a .msg file in c# Pin
shakilmailbox27-Feb-09 22:39
shakilmailbox27-Feb-09 22:39 
in vb.net convert it into telerik.convertor.com
don't forget to include import files & variables
Imports System.Web
Imports Microsoft.Office.Interop
Imports Microsoft.Office.Interop.Outlook.OlItemType
Imports Microsoft.Office.Interop.Outlook
Imports System.Data.SqlClient
Imports System.IO.Directory

variables are
Public sqlclient As String
Dim strApplicationPath As String = System.AppDomain.CurrentDomain.BaseDirectory()
Dim appOutLook As New Outlook.Application
Dim ObjShared As New clsShared
Dim dt As New DataTable
Dim sql As String

For Each b As Object In items

Dim k As Outlook.MailItem
k = TryCast(b, Outlook.MailItem)
Dim s1 As String
s1 = TypeName(b)

If ((k.Subject.ToLower.Contains(failureNotice.ToLower)) Or (k.Subject.ToLower.Contains("failure notice"))) Then
If k.Attachments.Count > 0 Then
Dim Atmt As Outlook.Attachment
For Each Atmt In k.Attachments
'code that save .msg file into Existing Folder
If Atmt.FileName.Contains(".msg") Then
Atmt.SaveAsFile(strApplicationPath + "\" + Atmt.FileName)

Dim Msg As Outlook.MailItem
Msg = appOutLook.CreateItemFromTemplate(strApplicationPath + "\" + Atmt.FileName)

'code that save data into server
Dim strTo1 As String
Dim strSubject1 As String
Dim strDate1 As String

strTo1 = Msg.To.ToString
strSubject1 = Msg.Subject.ToString
strDate1 = Msg.SentOn.ToString("dd-MMM-yyyy")

Msg.Close(Outlook.OlInspectorClose.olDiscard)
End If
Next
End If
End If
Next


Regards,
Mohammad Shakil

Mohammad Shakil
Software Engg.
Kurla,Mumbai,India
GeneralConnecting To Network Share Pin
Aisha4-Feb-03 7:13
Aisha4-Feb-03 7:13 
GeneralDelayed QueryInterface error Exception!!! Pin
EdgarBM4-Feb-03 1:42
EdgarBM4-Feb-03 1:42 
GeneralRe: Delayed QueryInterface error Exception!!! Pin
John Fisher4-Feb-03 8:08
John Fisher4-Feb-03 8:08 
GeneralRe: Delayed QueryInterface error Exception!!! Pin
EdgarBM9-Feb-03 21:47
EdgarBM9-Feb-03 21:47 
GeneralRe: Delayed QueryInterface error Exception!!! Pin
leppie10-Feb-03 7:23
leppie10-Feb-03 7:23 
GeneralRe: Delayed QueryInterface error Exception!!! Pin
leppie4-Feb-03 8:33
leppie4-Feb-03 8:33 
GeneralRe: Delayed QueryInterface error Exception!!! Pin
EdgarBM9-Feb-03 21:49
EdgarBM9-Feb-03 21:49 
GeneralNullObjectRef in DataRow Pin
A.Wegierski3-Feb-03 23:07
A.Wegierski3-Feb-03 23:07 
GeneralRe: NullObjectRef in DataRow Pin
andyharman4-Feb-03 3:21
professionalandyharman4-Feb-03 3:21 
GeneralRe: NullObjectRef in DataRow - unfortunately Pin
A.Wegierski4-Feb-03 18:33
A.Wegierski4-Feb-03 18:33 
GeneralRe: NullObjectRef in DataRow Pin
A.Wegierski7-Feb-03 1:55
A.Wegierski7-Feb-03 1:55 
GeneralRe: NullObjectRef in DataRow Pin
Jim Stewart14-Feb-03 17:28
Jim Stewart14-Feb-03 17:28 
GeneralRe: NullObjectRef in DataRow Pin
A.Wegierski16-Feb-03 22:12
A.Wegierski16-Feb-03 22:12 
GeneralSystem.Diagnostics question Pin
jtmtv183-Feb-03 20:00
jtmtv183-Feb-03 20:00 
GeneralRe: System.Diagnostics question Pin
Vasudevan Deepak Kumar3-Feb-03 21:51
Vasudevan Deepak Kumar3-Feb-03 21:51 
GeneralRe: System.Diagnostics question Pin
jtmtv183-Feb-03 21:56
jtmtv183-Feb-03 21:56 
QuestionHow can I find Server List? Pin
bania3-Feb-03 19:53
bania3-Feb-03 19:53 

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.