|
 |
asp_cdo thread: Passing CDO Message from ASP to COM+
Message #1 by "Todd B. Hall" <thall6@y...> on Fri, 14 Feb 2003 11:44:48 -0800 (PST)
|
|
Has anyone used the CDO message object and passed an
instance of this object to a COM function from ASP?
I get type mismatch errors when attempting.
...
Set objMyCom = Server.CreateObject("MyCom.MyClass")
Set objMessage = Server.CreateObject("CDO.Message")
objMessage.AddAttachment("C:\myexel.xls")
objMyCom.passMessage(objMessage)
...
My goal is to grab the attched file from the message
object and write to the filesystem on the remote
server hosting my COM.
=====
regards,
Todd B. Hall
eMail: thall6@y...
Pager: 3137954369@a...
Fax: (xxx)xxx-xxxx
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
Message #2 by "Siegfried Weber" <sweber@c...> on Fri, 14 Feb 2003 22:19:58 +0100
|
|
First let me say that I do not use CDOSYS/CDOEX in such a way you do
hence I am afraid I cannot much help here. But let me ask you a
question: is there any particular reason why you are trying to create
the CDO.Message from inside ASP and afterwards pass the object into your
component? Wouldn't it be less hassle to encapsulate the whole
CDOSYS/CDOEX code into the COM component?
<Cheers:Siegfried runat=3D"server" />
Development Lead,
CDOLive LLC - The Microsoft Messaging and Collaboration Application
Experts
http://www.cdolive.com
> -----Original Message-----
> From: Todd B. Hall [mailto:thall6@y...]
> Sent: Friday, February 14, 2003 8:45 PM
> To: ASP CDO
> Subject: [asp_cdo] Passing CDO Message from ASP to COM+
>
>
> Has anyone used the CDO message object and passed an
> instance of this object to a COM function from ASP?
>
> I get type mismatch errors when attempting.
>
> ...
> Set objMyCom =3D Server.CreateObject("MyCom.MyClass")
> Set objMessage =3D Server.CreateObject("CDO.Message")
>
> objMessage.AddAttachment("C:\myexel.xls")
> objMyCom.passMessage(objMessage)
> ...
>
>
> My goal is to grab the attched file from the message
> object and write to the filesystem on the remote
> server hosting my COM.
>
>
> =3D=3D=3D=3D=3D
> regards,
> Todd B. Hall
> eMail: thall6@y...
> Pager: 3137954369@a...
> Fax: (xxx)xxx-xxxx
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
Message #3 by Rif'at Fajrianto <rifat@3...> on Mon, 17 Feb 2003 09:37:12 +1100
|
|
What is the parameter of objMyCom.passMessage declared as?
It should be declared as Variant.
Your objMyCom.passMessage should look like this :
Sub passMessage( Msg As Variant )
Dim NewMsg As CDO.Imessage
Set NewMsg = Msg
'And work with NewMsg instead of Msg ....
....
End Sub
-----Original Message-----
From: Todd B. Hall [mailto:thall6@y...]
Sent: Saturday, 15 February 2003 6:45 AM
To: ASP CDO
Subject: [asp_cdo] Passing CDO Message from ASP to COM+
Has anyone used the CDO message object and passed an
instance of this object to a COM function from ASP?
I get type mismatch errors when attempting.
...
Set objMyCom = Server.CreateObject("MyCom.MyClass")
Set objMessage = Server.CreateObject("CDO.Message")
objMessage.AddAttachment("C:\myexel.xls")
objMyCom.passMessage(objMessage)
...
My goal is to grab the attched file from the message
object and write to the filesystem on the remote
server hosting my COM.
=====
regards,
Todd B. Hall
eMail: thall6@y...
Pager: 3137954369@a...
Fax: (xxx)xxx-xxxx
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
Message #4 by "Todd B. Hall" <thall6@y...> on Tue, 18 Feb 2003 15:47:42
|
|
I am trying to pass a file attchment with the message object, so I can
transfer the file from the web server in ASP, to the app server which is a
separate box with security restrcitions preventing the use of FTP. It only
runs COM+ applications that are DCOM'd to my web server.
> First let me say that I do not use CDOSYS/CDOEX in such a way you do
hence I am afraid I cannot much help here. But let me ask you a
question: is there any particular reason why you are trying to create
the CDO.Message from inside ASP and afterwards pass the object into your
component? Wouldn't it be less hassle to encapsulate the whole
CDOSYS/CDOEX code into the COM component?
<Cheers:Siegfried runat=3D"server" />
Development Lead,
CDOLive LLC - The Microsoft Messaging and Collaboration Application
Experts
http://www.cdolive.com
> -----Original Message-----
> From: Todd B. Hall [mailto:thall6@y...]
> Sent: Friday, February 14, 2003 8:45 PM
> To: ASP CDO
> Subject: [asp_cdo] Passing CDO Message from ASP to COM+
>
>
> Has anyone used the CDO message object and passed an
> instance of this object to a COM function from ASP?
>
> I get type mismatch errors when attempting.
>
> ...
> Set objMyCom =3D Server.CreateObject("MyCom.MyClass")
> Set objMessage =3D Server.CreateObject("CDO.Message")
>
> objMessage.AddAttachment("C:\myexel.xls")
> objMyCom.passMessage(objMessage)
> ...
>
>
> My goal is to grab the attched file from the message
> object and write to the filesystem on the remote
> server hosting my COM.
>
>
> =3D=3D=3D=3D=3D
> regards,
> Todd B. Hall
> eMail: thall6@y...
> Pager: 3137954369@a...
> Fax: (xxx)xxx-xxxx
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
|
|
 |