473,386 Members | 1,715 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,386 software developers and data experts.

Pass Object From CDO to Outlook

Hi,

I used following codes to pass a message item from CDO to Outlook. They
worked fine when I used outlook 2000, but get an error of "Specified cast is
not valid." when I used Outlook 2003. Anybody has an ideal?

Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
Dim adoMsg As MAPI.Message
outlookMsg =
Microsoft.Office.Interop.Outlook.Application.Sessi on.GetItemFromID(cdoMsg.ID)
Nov 21 '05 #1
8 2667
Li,
Do you have Option Strict On?

If you have Option Strict On:
- cdoMsg.ID has a return type of Object (which contains a String)
- Session.GetItemFromID also has a return type of Object (which based on the
ID, may contain a MailItem)
Try something like:

Dim outlookApp As Microsoft.Office.Interop.Outlook.Application

| Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
| Dim cdoMsgAs MAPI.Message

| outlookMsg = DirectCast( _
outlookApp .Session.GetItemFromID( _
DirectCast(cdoMsg.ID, String) _
), Outlook.MailItem)

Which tells the compile that cdoMsg.ID returns a String, and
Session.GetItemFromID returns an Outlook.MailItem.

Hope this helps
Jay
"Li Pang" <Li****@discussions.microsoft.com> wrote in message
news:7B**********************************@microsof t.com...
| Hi,
|
| I used following codes to pass a message item from CDO to Outlook. They
| worked fine when I used outlook 2000, but get an error of "Specified cast
is
| not valid." when I used Outlook 2003. Anybody has an ideal?
|
| Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
| Dim adoMsg As MAPI.Message
| outlookMsg =
|
Microsoft.Office.Interop.Outlook.Application.Sessi on.GetItemFromID(cdoMsg.ID)
|
|
Nov 21 '05 #2
Jay,

Thank for your help. But I still got the same error. Are you sure the ID is
a string?

"Jay B. Harlow [MVP - Outlook]" wrote:
Li,
Do you have Option Strict On?

If you have Option Strict On:
- cdoMsg.ID has a return type of Object (which contains a String)
- Session.GetItemFromID also has a return type of Object (which based on the
ID, may contain a MailItem)
Try something like:

Dim outlookApp As Microsoft.Office.Interop.Outlook.Application

| Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
| Dim cdoMsgAs MAPI.Message

| outlookMsg = DirectCast( _
outlookApp .Session.GetItemFromID( _
DirectCast(cdoMsg.ID, String) _
), Outlook.MailItem)

Which tells the compile that cdoMsg.ID returns a String, and
Session.GetItemFromID returns an Outlook.MailItem.

Hope this helps
Jay
"Li Pang" <Li****@discussions.microsoft.com> wrote in message
news:7B**********************************@microsof t.com...
| Hi,
|
| I used following codes to pass a message item from CDO to Outlook. They
| worked fine when I used outlook 2000, but get an error of "Specified cast
is
| not valid." when I used Outlook 2003. Anybody has an ideal?
|
| Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
| Dim adoMsg As MAPI.Message
| outlookMsg =
|
Microsoft.Office.Interop.Outlook.Application.Sessi on.GetItemFromID(cdoMsg.ID)
|
|

Nov 21 '05 #3
Li,
Yes:

http://msdn.microsoft.com/library/de...ty_message.asp

Are you getting a compile error or a runtime error? My sample addresses
compile errors (caused by Option Strict On).

If you are getting a runtime error, can you show the entire exception
(Exception.ToString) to better identify the problem.

Hope this helps
Jay

"Li Pang" <Li****@discussions.microsoft.com> wrote in message
news:BF**********************************@microsof t.com...
| Jay,
|
| Thank for your help. But I still got the same error. Are you sure the ID
is
| a string?
|
| "Jay B. Harlow [MVP - Outlook]" wrote:
|
| > Li,
| > Do you have Option Strict On?
| >
| > If you have Option Strict On:
| > - cdoMsg.ID has a return type of Object (which contains a String)
| > - Session.GetItemFromID also has a return type of Object (which based on
the
| > ID, may contain a MailItem)
| >
| >
| > Try something like:
| >
| > Dim outlookApp As Microsoft.Office.Interop.Outlook.Application
| >
| > | Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
| > | Dim cdoMsgAs MAPI.Message
| >
| > | outlookMsg = DirectCast( _
| > outlookApp .Session.GetItemFromID( _
| > DirectCast(cdoMsg.ID, String) _
| > ), Outlook.MailItem)
| >
| > Which tells the compile that cdoMsg.ID returns a String, and
| > Session.GetItemFromID returns an Outlook.MailItem.
| >
| > Hope this helps
| > Jay
| >
| >
| > "Li Pang" <Li****@discussions.microsoft.com> wrote in message
| > news:7B**********************************@microsof t.com...
| > | Hi,
| > |
| > | I used following codes to pass a message item from CDO to Outlook.
They
| > | worked fine when I used outlook 2000, but get an error of "Specified
cast
| > is
| > | not valid." when I used Outlook 2003. Anybody has an ideal?
| > |
| > | Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
| > | Dim adoMsg As MAPI.Message
| > | outlookMsg =
| > |
| >
Microsoft.Office.Interop.Outlook.Application.Sessi on.GetItemFromID(cdoMsg.ID)
| > |
| > |
| >
| >
| >
Nov 21 '05 #4
Jay,

I didn't use Option Strict On because it causes other validation. I have
only one single problem to pass message ID from CDO to Outlook.
the id is a long string like
0000000043A5913410C2B848A9ECF84FFE693BF40700C8C0B8 F6F0E3D211BAC00008C7C9AA8C00001E9052E900000030C812 DEF7FC4CBDA6B42C363192E300000027962A0000

and exception after the line

Try
oMsg =
Outlook.Session.GetItemFromID("0000000043A5913410C 2B848A9ECF84FFE693BF40700C8C0B8F6F0E3D211BAC00008C 7C9AA8C00001E9052E900000030C812DEF7FC4CBDA6B42C363 192E300000027962B0000")
Debug.WriteLine("OK")
Catch ex As System.Exception
Debug.WriteLine("ERROR: " & ex.Message)
End Try

is "Specified cast is not valid"

This error persists by using DirectCast in your codes.

"Jay B. Harlow [MVP - Outlook]" wrote:
Li,
Yes:

http://msdn.microsoft.com/library/de...ty_message.asp

Are you getting a compile error or a runtime error? My sample addresses
compile errors (caused by Option Strict On).

If you are getting a runtime error, can you show the entire exception
(Exception.ToString) to better identify the problem.

Hope this helps
Jay

"Li Pang" <Li****@discussions.microsoft.com> wrote in message
news:BF**********************************@microsof t.com...
| Jay,
|
| Thank for your help. But I still got the same error. Are you sure the ID
is
| a string?
|
| "Jay B. Harlow [MVP - Outlook]" wrote:
|
| > Li,
| > Do you have Option Strict On?
| >
| > If you have Option Strict On:
| > - cdoMsg.ID has a return type of Object (which contains a String)
| > - Session.GetItemFromID also has a return type of Object (which based on
the
| > ID, may contain a MailItem)
| >
| >
| > Try something like:
| >
| > Dim outlookApp As Microsoft.Office.Interop.Outlook.Application
| >
| > | Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
| > | Dim cdoMsgAs MAPI.Message
| >
| > | outlookMsg = DirectCast( _
| > outlookApp .Session.GetItemFromID( _
| > DirectCast(cdoMsg.ID, String) _
| > ), Outlook.MailItem)
| >
| > Which tells the compile that cdoMsg.ID returns a String, and
| > Session.GetItemFromID returns an Outlook.MailItem.
| >
| > Hope this helps
| > Jay
| >
| >
| > "Li Pang" <Li****@discussions.microsoft.com> wrote in message
| > news:7B**********************************@microsof t.com...
| > | Hi,
| > |
| > | I used following codes to pass a message item from CDO to Outlook.
They
| > | worked fine when I used outlook 2000, but get an error of "Specified
cast
| > is
| > | not valid." when I used Outlook 2003. Anybody has an ideal?
| > |
| > | Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
| > | Dim adoMsg As MAPI.Message
| > | outlookMsg =
| > |
| >
Microsoft.Office.Interop.Outlook.Application.Sessi on.GetItemFromID(cdoMsg.ID)
| > |
| > |
| >
| >
| >

Nov 21 '05 #5
Jay,

Seems it is an Outlook issue. I use Option Strict On and use outlook to
catch an mailitem, no error at compiling time but got a runtime error at
below line:

oMailItem = CType(oItems.GetFirst(), Outlook.MailItem)

"Specified cast is not valid."

"Jay B. Harlow [MVP - Outlook]" wrote:
Li,
Yes:

http://msdn.microsoft.com/library/de...ty_message.asp

Are you getting a compile error or a runtime error? My sample addresses
compile errors (caused by Option Strict On).

If you are getting a runtime error, can you show the entire exception
(Exception.ToString) to better identify the problem.

Hope this helps
Jay

"Li Pang" <Li****@discussions.microsoft.com> wrote in message
news:BF**********************************@microsof t.com...
| Jay,
|
| Thank for your help. But I still got the same error. Are you sure the ID
is
| a string?
|
| "Jay B. Harlow [MVP - Outlook]" wrote:
|
| > Li,
| > Do you have Option Strict On?
| >
| > If you have Option Strict On:
| > - cdoMsg.ID has a return type of Object (which contains a String)
| > - Session.GetItemFromID also has a return type of Object (which based on
the
| > ID, may contain a MailItem)
| >
| >
| > Try something like:
| >
| > Dim outlookApp As Microsoft.Office.Interop.Outlook.Application
| >
| > | Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
| > | Dim cdoMsgAs MAPI.Message
| >
| > | outlookMsg = DirectCast( _
| > outlookApp .Session.GetItemFromID( _
| > DirectCast(cdoMsg.ID, String) _
| > ), Outlook.MailItem)
| >
| > Which tells the compile that cdoMsg.ID returns a String, and
| > Session.GetItemFromID returns an Outlook.MailItem.
| >
| > Hope this helps
| > Jay
| >
| >
| > "Li Pang" <Li****@discussions.microsoft.com> wrote in message
| > news:7B**********************************@microsof t.com...
| > | Hi,
| > |
| > | I used following codes to pass a message item from CDO to Outlook.
They
| > | worked fine when I used outlook 2000, but get an error of "Specified
cast
| > is
| > | not valid." when I used Outlook 2003. Anybody has an ideal?
| > |
| > | Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
| > | Dim adoMsg As MAPI.Message
| > | outlookMsg =
| > |
| >
Microsoft.Office.Interop.Outlook.Application.Sessi on.GetItemFromID(cdoMsg.ID)
| > |
| > |
| >
| >
| >

Nov 21 '05 #6
Li Pang,
As I requested: You need to include *all* the text from Exception.ToString
not ex.Message, you need:

| Catch ex As System.Exception
| Debug.WriteLine("ERROR: " & ex.ToString())
| End Try

Cut & paste all the lines that the Debug.WriteLine produces...

This will better help identify where specifically the problem is.

Hope this helps
Jay

"Li Pang" <Li****@discussions.microsoft.com> wrote in message
news:35**********************************@microsof t.com...
| Jay,
|
| I didn't use Option Strict On because it causes other validation. I have
| only one single problem to pass message ID from CDO to Outlook.
| the id is a long string like
|
0000000043A5913410C2B848A9ECF84FFE693BF40700C8C0B8 F6F0E3D211BAC00008C7C9AA8C00001E9052E900000030C812 DEF7FC4CBDA6B42C363192E300000027962A0000
|
| and exception after the line
|
| Try
| oMsg =
|
Outlook.Session.GetItemFromID("0000000043A5913410C 2B848A9ECF84FFE693BF40700C8C0B8F6F0E3D211BAC00008C 7C9AA8C00001E9052E900000030C812DEF7FC4CBDA6B42C363 192E300000027962B0000")
| Debug.WriteLine("OK")
| Catch ex As System.Exception
| Debug.WriteLine("ERROR: " & ex.Message)
| End Try
|
| is "Specified cast is not valid"
|
| This error persists by using DirectCast in your codes.
|
|
|
| "Jay B. Harlow [MVP - Outlook]" wrote:
|
| > Li,
| > Yes:
| >
| >
http://msdn.microsoft.com/library/de...ty_message.asp
| >
| > Are you getting a compile error or a runtime error? My sample addresses
| > compile errors (caused by Option Strict On).
| >
| > If you are getting a runtime error, can you show the entire exception
| > (Exception.ToString) to better identify the problem.
| >
| > Hope this helps
| > Jay
| >
| > "Li Pang" <Li****@discussions.microsoft.com> wrote in message
| > news:BF**********************************@microsof t.com...
| > | Jay,
| > |
| > | Thank for your help. But I still got the same error. Are you sure the
ID
| > is
| > | a string?
| > |
| > | "Jay B. Harlow [MVP - Outlook]" wrote:
| > |
| > | > Li,
| > | > Do you have Option Strict On?
| > | >
| > | > If you have Option Strict On:
| > | > - cdoMsg.ID has a return type of Object (which contains a String)
| > | > - Session.GetItemFromID also has a return type of Object (which
based on
| > the
| > | > ID, may contain a MailItem)
| > | >
| > | >
| > | > Try something like:
| > | >
| > | > Dim outlookApp As Microsoft.Office.Interop.Outlook.Application
| > | >
| > | > | Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
| > | > | Dim cdoMsgAs MAPI.Message
| > | >
| > | > | outlookMsg = DirectCast( _
| > | > outlookApp .Session.GetItemFromID( _
| > | > DirectCast(cdoMsg.ID, String) _
| > | > ), Outlook.MailItem)
| > | >
| > | > Which tells the compile that cdoMsg.ID returns a String, and
| > | > Session.GetItemFromID returns an Outlook.MailItem.
| > | >
| > | > Hope this helps
| > | > Jay
| > | >
| > | >
| > | > "Li Pang" <Li****@discussions.microsoft.com> wrote in message
| > | > news:7B**********************************@microsof t.com...
| > | > | Hi,
| > | > |
| > | > | I used following codes to pass a message item from CDO to Outlook.
| > They
| > | > | worked fine when I used outlook 2000, but get an error of
"Specified
| > cast
| > | > is
| > | > | not valid." when I used Outlook 2003. Anybody has an ideal?
| > | > |
| > | > | Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
| > | > | Dim adoMsg As MAPI.Message
| > | > | outlookMsg =
| > | > |
| > | >
| >
Microsoft.Office.Interop.Outlook.Application.Sessi on.GetItemFromID(cdoMsg.ID)
| > | > |
| > | > |
| > | >
| > | >
| > | >
| >
| >
| >
Nov 21 '05 #7
Li Pang,
That suggests to me that the first item is not a MailItem, it may be a
ReportItem, MeetingItem, one of the TaskRequestItems, or some other COM
object.

If you use TypeOf what kind of object does it match?

Dim item As Object = oItems.GetFirst()
If TypeOf item Is Outlook.MailItem Then
' we got a mail item
ElseIf TypeOf item Is Outlook.ReportItem Then
' we got a report item
ElseIf TypeOf item Is Outlook.MeetingItem Then
' we got a meeting item
Else If TypeOf ... for all the other Outlook Item types.
' we got another outlook item type...
End If...

Hope this helps
Jay

"Li Pang" <Li****@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
| Jay,
|
| Seems it is an Outlook issue. I use Option Strict On and use outlook to
| catch an mailitem, no error at compiling time but got a runtime error at
| below line:
|
| oMailItem = CType(oItems.GetFirst(), Outlook.MailItem)
|
| "Specified cast is not valid."
|
|
|
| "Jay B. Harlow [MVP - Outlook]" wrote:
|
| > Li,
| > Yes:
| >
| >
http://msdn.microsoft.com/library/de...ty_message.asp
| >
| > Are you getting a compile error or a runtime error? My sample addresses
| > compile errors (caused by Option Strict On).
| >
| > If you are getting a runtime error, can you show the entire exception
| > (Exception.ToString) to better identify the problem.
| >
| > Hope this helps
| > Jay
| >
| > "Li Pang" <Li****@discussions.microsoft.com> wrote in message
| > news:BF**********************************@microsof t.com...
| > | Jay,
| > |
| > | Thank for your help. But I still got the same error. Are you sure the
ID
| > is
| > | a string?
| > |
| > | "Jay B. Harlow [MVP - Outlook]" wrote:
| > |
| > | > Li,
| > | > Do you have Option Strict On?
| > | >
| > | > If you have Option Strict On:
| > | > - cdoMsg.ID has a return type of Object (which contains a String)
| > | > - Session.GetItemFromID also has a return type of Object (which
based on
| > the
| > | > ID, may contain a MailItem)
| > | >
| > | >
| > | > Try something like:
| > | >
| > | > Dim outlookApp As Microsoft.Office.Interop.Outlook.Application
| > | >
| > | > | Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
| > | > | Dim cdoMsgAs MAPI.Message
| > | >
| > | > | outlookMsg = DirectCast( _
| > | > outlookApp .Session.GetItemFromID( _
| > | > DirectCast(cdoMsg.ID, String) _
| > | > ), Outlook.MailItem)
| > | >
| > | > Which tells the compile that cdoMsg.ID returns a String, and
| > | > Session.GetItemFromID returns an Outlook.MailItem.
| > | >
| > | > Hope this helps
| > | > Jay
| > | >
| > | >
| > | > "Li Pang" <Li****@discussions.microsoft.com> wrote in message
| > | > news:7B**********************************@microsof t.com...
| > | > | Hi,
| > | > |
| > | > | I used following codes to pass a message item from CDO to Outlook.
| > They
| > | > | worked fine when I used outlook 2000, but get an error of
"Specified
| > cast
| > | > is
| > | > | not valid." when I used Outlook 2003. Anybody has an ideal?
| > | > |
| > | > | Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
| > | > | Dim adoMsg As MAPI.Message
| > | > | outlookMsg =
| > | > |
| > | >
| >
Microsoft.Office.Interop.Outlook.Application.Sessi on.GetItemFromID(cdoMsg.ID)
| > | > |
| > | > |
| > | >
| > | >
| > | >
| >
| >
| >
Nov 21 '05 #8
Sorry Jay,

I think I know the reason but still don't have a solution.

The error occured when to catch a message with the digital signature. But
the same codes can read successfully any message without the digital
signature. I think this is due to Outlook 2003 protection.

With Outlook 2000 the codes run without the error.

All I need is to read a message with digital signature, and move the
attachment to a user' defined location.

Possible solutions:
1. Read messages through Outloo 2003
2. Read messages through CDO, but how to get the attachment and save it into
a specific location?

"Jay B. Harlow [MVP - Outlook]" wrote:
Li Pang,
That suggests to me that the first item is not a MailItem, it may be a
ReportItem, MeetingItem, one of the TaskRequestItems, or some other COM
object.

If you use TypeOf what kind of object does it match?

Dim item As Object = oItems.GetFirst()
If TypeOf item Is Outlook.MailItem Then
' we got a mail item
ElseIf TypeOf item Is Outlook.ReportItem Then
' we got a report item
ElseIf TypeOf item Is Outlook.MeetingItem Then
' we got a meeting item
Else If TypeOf ... for all the other Outlook Item types.
' we got another outlook item type...
End If...

Hope this helps
Jay

"Li Pang" <Li****@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
| Jay,
|
| Seems it is an Outlook issue. I use Option Strict On and use outlook to
| catch an mailitem, no error at compiling time but got a runtime error at
| below line:
|
| oMailItem = CType(oItems.GetFirst(), Outlook.MailItem)
|
| "Specified cast is not valid."
|
|
|
| "Jay B. Harlow [MVP - Outlook]" wrote:
|
| > Li,
| > Yes:
| >
| >
http://msdn.microsoft.com/library/de...ty_message.asp
| >
| > Are you getting a compile error or a runtime error? My sample addresses
| > compile errors (caused by Option Strict On).
| >
| > If you are getting a runtime error, can you show the entire exception
| > (Exception.ToString) to better identify the problem.
| >
| > Hope this helps
| > Jay
| >
| > "Li Pang" <Li****@discussions.microsoft.com> wrote in message
| > news:BF**********************************@microsof t.com...
| > | Jay,
| > |
| > | Thank for your help. But I still got the same error. Are you sure the
ID
| > is
| > | a string?
| > |
| > | "Jay B. Harlow [MVP - Outlook]" wrote:
| > |
| > | > Li,
| > | > Do you have Option Strict On?
| > | >
| > | > If you have Option Strict On:
| > | > - cdoMsg.ID has a return type of Object (which contains a String)
| > | > - Session.GetItemFromID also has a return type of Object (which
based on
| > the
| > | > ID, may contain a MailItem)
| > | >
| > | >
| > | > Try something like:
| > | >
| > | > Dim outlookApp As Microsoft.Office.Interop.Outlook.Application
| > | >
| > | > | Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
| > | > | Dim cdoMsgAs MAPI.Message
| > | >
| > | > | outlookMsg = DirectCast( _
| > | > outlookApp .Session.GetItemFromID( _
| > | > DirectCast(cdoMsg.ID, String) _
| > | > ), Outlook.MailItem)
| > | >
| > | > Which tells the compile that cdoMsg.ID returns a String, and
| > | > Session.GetItemFromID returns an Outlook.MailItem.
| > | >
| > | > Hope this helps
| > | > Jay
| > | >
| > | >
| > | > "Li Pang" <Li****@discussions.microsoft.com> wrote in message
| > | > news:7B**********************************@microsof t.com...
| > | > | Hi,
| > | > |
| > | > | I used following codes to pass a message item from CDO to Outlook.
| > They
| > | > | worked fine when I used outlook 2000, but get an error of
"Specified
| > cast
| > | > is
| > | > | not valid." when I used Outlook 2003. Anybody has an ideal?
| > | > |
| > | > | Dim outlookMsg AsMicrosoft.Office.Interop.Outlook.MailItem
| > | > | Dim adoMsg As MAPI.Message
| > | > | outlookMsg =
| > | > |
| > | >
| >
Microsoft.Office.Interop.Outlook.Application.Sessi on.GetItemFromID(cdoMsg.ID)
| > | > |
| > | > |
| > | >
| > | >
| > | >
| >
| >
| >

Nov 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Job Lot | last post by:
I am retrieving message from the Inbox as follows: (MS Article ID 310258: How to use the Microsoft Outlook Object Library to retrieve a message from the Inbox by using Visual C# .NET) Try Dim...
0
by: RitaG | last post by:
Hi. When I set "Option Strict" to On, I'm getting an error message "Option Strict On disallows implicit conversions from 'System.Object' to 'Outlook.MailItem' with the following code: Dim...
5
by: Sunny | last post by:
Hi, I have to implement client/server application. The client have to instaniate an remoting object via http and pass some auth info. If the auth is OK, the client should invoke a method (or...
2
by: Augusto Cesar | last post by:
Hello people. How can I Pass ASP Array variable to Javascript; I´m to trying this: <script language="JavaScript"> var x = new Array(10);
3
by: Chris | last post by:
I have a modal (yes it must be modal) web page. I do this by having an empty frame that points to my main page (so that I can repost without new popups) I have to pass data to the child page from...
2
by: Pieter | last post by:
Hi, I'm using a thight integration with Outlook 2003 (with an Exchange server) in my VB.NET (2005) application. Until now I'm using the Outlook Object Model, but it appears to be very slow, and...
1
by: Cylix | last post by:
My application have a file list, I set the the list will drag the file fullpath string already. When I drop it to outlook email, it pasted as a text ... How can I paste it as a attachment? ...
46
by: Phil Reynolds | last post by:
I have Access 2000 and 2003 on my development machine. My client only has Access 2000. When I develop for this client, I run Access 2000. However, my code requires that I have the Microsoft Word...
1
by: Sylfelin | last post by:
Hello, If I use Microsoft Outlook 12.0 Object Library (Outlook 2007) COM Object in my application, the custommer must have the outlook 2007 on his computer ? But if i use Microsoft Outlook...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.