• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • Last Modified:

Lotus Notes Automation through VB

I'm trying to create a notes session using the following code

Dim objSession As lotus.NotesSession
Dim objDB As lotus.NOTESDATABASE

Set objSession = CreateObject("notes.NotesSession")

Set objDB = objSession.CURRENTDATABASE()

This works fine on some machines but on others the createobject does't work leaving objSession still = to nothing.

Are there any settings or permission requirements needed to create this object.  I've tested this on NT4 machines.  

I've tried late binding but this to did not work.  The lotus helpfile didn't help much either.

I'd be very grateful for any help.

Thanks

Bryan
0
bryanvahey
Asked:
bryanvahey
2 Solutions
 
tejas_pathakCommented:
Check whether that the component is registered on the machines on which this code is causing problems. Also, check the version of the component library.
0
 
TimCotteeCommented:
Hi bryanvahey,

You don't need any special permissions.

If the notes 4.x client is installed on the machine then this should certainly work. If the machine has never had 4.x installed only 5.x then this *may* not work as the automation library is different for notes 5.x. Generally a 5.x client will still allow the older automation objects but this cannot be guaranteed. If you want 5.x functionality then you should explore the alternative libraries which are actually much easier to use and more powerful.

Tim Cottee MCSD, MCDBA, CPIM
http://www.timcottee.tk 

Brainbench MVP for Visual Basic
http://www.brainbench.com

Experts-Exchange Advisory Board Member
0
 
CleanupPingCommented:
bryanvahey:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now