Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

need some advice and direction, please

0 views
Skip to first unread message

Jill S

unread,
Oct 11, 1999, 3:00:00 AM10/11/99
to
I'm using Outlook98, Exchange 5.5, VB 6.0 (enterprise), and Oracle 8.0.
My mission is to use an outlook custom form to call the exchange
server, which in turn uses an odbc connection to query Oracle and
return those values back to the Outlook form. I'm currently stuck on
the VB part. I found an article on Integrating Enterprise Data with MS
Outlook at:

http://technet.microsoft.com/cdonline/content/complete/Desk/Outlook/Tech
Note/off408ef.htm

the exchange server comes in because they want to automate the form to
be ran every so often. I understand I will need event scripting for
that part, but right now I can't figure out how to connect to the
database and what I need to do with the ActiveX DLL or EXE (not sure
which to use) after it's created.

I'm new at all this and would really appreciate any help you can give
me. Thanks!

Jill


Sent via Deja.com http://www.deja.com/
Before you buy.

Simon Jones (MSD)

unread,
Oct 12, 1999, 3:00:00 AM10/12/99
to
It is perfectly possible to retrieve data from Oracle onto an Outlook 98 form but the programming would have to be in VBScript. Outlook 2000 gives you much better programming capabilities. You may be able to make a COM component in Visual Basic and then call this from your Outlook form.
 
I don't think you'll be able to automate Exchange to "run a form every so often". You may be able to make Exchange call a COM component whenever an item is added or modified in a folder.
 
ActiveX DLLs are "in-process" components. They are faster to call. ActiveX EXEs are "out-of-process" components. They are slower to call. Read more in the MSDN library about the other differences.
 
Does this help?

Regards,
Simon Jones

MillStream Designs Ltd
Independent IT Consultants

Jill S

unread,
Oct 12, 1999, 3:00:00 AM10/12/99
to
I wrote an ActiveX DLL that consists of a module and a class. When I
run it, nothing happens. I figure this is a good thing since there
isn't any apparent errors, but I'm not sure if I need to create a form
that is associated with the DLL.

In Outlook98, I have a post and the following code in VBScript:

Dim txtOracleList
Dim objListRDO
Const rdDriveNoPrompt = 1
Const rdOpenStatic = 3

Sub Item_Open()
Set txtOracleList = Item.GetInspector.ModifiedFormPages("Oracle
List").Controls("txtOracleList")
Set objListRDO = CreateObject("ListServerRDO.CListServer")
End Sub
'where ListServerRDO is the Project and CListServer is the class

Sub cmdGetUpdate_Click()
Dim strSQL
txtOracleList.Value = ""

strSQL = "Select responsibility_name from
apps.fnd_responsibility_tl;"
objListRDO.ConnectString = "DSN=Dev;UID=apps;PWD=apps"

txtOracleList.Value = objListRDO.GetList(strSQL)
End Sub

I'm getting an error on the last line txtOracleList.Value = ...,
saying "Application defined or object defined error".

Since it's getting past the objListRDO.ConnectString line, does this
mean that it's connecting to the database? I can't tell at all what is
going on.

I put a stop statement in the code to try to bring up the
debugger to step through the code, but that doesn't do anything but
show a message box saying a stop statement as been encountered. Then I
get the other error and a message box that says, operation failed. Does
my code look right? I'll be more than happy to post the DLL code if
anyone wants to take a peek at that.

Thanks for all your help!

Jill

In article <7tv6nt$g7v$1...@uranium.btinternet.com>,
"Simon Jones (MSD)" <sim...@btinternet.com> wrote:
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0028_01BF14AF.039DAA80
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable


>
> It is perfectly possible to retrieve data from Oracle onto an Outlook

98 =
> form but the programming would have to be in VBScript. Outlook 2000 =


> gives you much better programming capabilities. You may be able to

make =
> a COM component in Visual Basic and then call this from your Outlook =


> form.
>
> I don't think you'll be able to automate Exchange to "run a form

every =
> so often". You may be able to make Exchange call a COM component =
> whenever an item is added or modified in a folder.=20
>
> ActiveX DLLs are "in-process" components. They are faster to call. =


> ActiveX EXEs are "out-of-process" components. They are slower to

call. =


> Read more in the MSDN library about the other differences.
>
> Does this help?
>
> Regards,

> Simon Jones=20
> MillStream Designs Ltd=20
> Independent IT Consultants=20
>
> Jill S <js...@my-deja.com> wrote in message =
> news:7ttqhj$kn4$1...@nnrp1.deja.com...
> I'm using Outlook98, Exchange 5.5, VB 6.0 (enterprise), and Oracle =


> 8.0.
> My mission is to use an outlook custom form to call the exchange
> server, which in turn uses an odbc connection to query Oracle and
> return those values back to the Outlook form. I'm currently stuck on
> the VB part. I found an article on Integrating Enterprise Data with
MS
> Outlook at:
>

> =


>
http://technet.microsoft.com/cdonline/content/complete/Desk/Outlook/Tech
> Note/off408ef.htm
>
> the exchange server comes in because they want to automate the form
to
> be ran every so often. I understand I will need event scripting for
> that part, but right now I can't figure out how to connect to the
> database and what I need to do with the ActiveX DLL or EXE (not sure
> which to use) after it's created.
>

> ------=_NextPart_000_0028_01BF14AF.039DAA80
> Content-Type: text/html;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META content=3D"text/html; charset=3Diso-8859-1" =
> http-equiv=3DContent-Type>
> <META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT color=3D#000080>It is perfectly possible to retrieve data =
> from Oracle=20
> onto an Outlook 98 form but the programming would have to be in =
> VBScript.=20


> Outlook 2000 gives you much better programming capabilities. You may

be =
> able to=20
> make a COM component in Visual Basic and then call this from your =
> Outlook=20
> form.</FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><FONT color=3D#000080>I don't think you'll be able to automate =
> Exchange to=20
> "run a&nbsp;<STRONG>form</STRONG> every so often". You may be able
to=20
> make&nbsp;Exchange call a COM component whenever an item is added or =
> modified in=20
> a folder. </FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><FONT color=3D#000080>ActiveX DLLs are "in-process" components. =
> They are=20


> faster to call. ActiveX EXEs are "out-of-process" components. They

are =
> slower to=20
> call. Read more in the MSDN library about the other =
> differences.</FONT></DIV>
> <DIV><FONT color=3D#000080></FONT>&nbsp;</DIV>
> <DIV><FONT color=3D#000080>Does this help?</DIV><BR>
> <P><FONT color=3D#000080 face=3DVerdana size=3D2>Regards,<BR>Simon =
> Jones</FONT>=20
> <BR><FONT color=3D#000080 face=3DVerdana size=3D2>MillStream Designs =
> Ltd</FONT>=20
> <BR><FONT color=3D#000080 face=3DVerdana size=3D2>Independent IT =
> Consultants</FONT>=20
> </P></FONT>
> <BLOCKQUOTE=20
> style=3D"BORDER-LEFT: #000080 2px solid; MARGIN-LEFT: 5px; MARGIN-
RIGHT: =
> 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
> <DIV>Jill S &lt;<A =
> href=3D"mailto:js...@my-deja.com">js...@my-deja.com</A>&gt;=20
> wrote in message <A=20
> =
> href=3D"news:7ttqhj$kn4$1...@nnrp1.deja.com">news:7ttqhj$kn4
$1...@nnrp1.deja.co=
> m</A>...</DIV>I'm=20
> using Outlook98, Exchange 5.5, VB 6.0 (enterprise), and Oracle =
> 8.0.<BR>My=20
> mission is to use an outlook custom form to call the =
> exchange<BR>server, which=20
> in turn uses an odbc connection to query Oracle and<BR>return those
=
> values=20
> back to the Outlook form. I'm currently stuck on<BR>the VB part. I =
> found an=20
> article on Integrating Enterprise Data with MS<BR>Outlook =
> at:<BR><BR><A=20
> =
>
href=3D"http://technet.microsoft.com/cdonline/content/complete/Desk/Outl
o=
>
ok/Tech">http://technet.microsoft.com/cdonline/content/complete/Desk/Out
l=
> ook/Tech</A><BR>Note/off408ef.htm<BR><BR>the=20
> exchange server comes in because they want to automate the form =
> to<BR>be ran=20


> every so often. I understand I will need event scripting

for<BR>that =
> part, but=20
> right now I can't figure out how to connect to the<BR>database and =
> what I need=20
> to do with the ActiveX DLL or EXE (not sure<BR>which to use) after =
> it's=20
> created.</BLOCKQUOTE></BODY></HTML>
>
> ------=_NextPart_000_0028_01BF14AF.039DAA80--

Simon Jones (MSD)

unread,
Oct 14, 1999, 3:00:00 AM10/14/99
to
You should write a "test harness" application in VB and load this, along with your DLL project into a Project Group in VB. A project group is two or more projects loaded into the same instance of VB. You will then be able to single step through both the test harness application and the code for the DLL. You will be able to watch it working (or not working) and correct the code of the DLL until you are happy it is running correctly. You then make the DLL, copy it and register it in the working folder. Finally you can test it from Outlook 98 in VBScript.


Regards,
Simon Jones

MillStream Designs Ltd
Independent IT Consultants

0 new messages