?
Solved

Lotus Notes Automation through VB

Posted on 2003-03-20
4
Medium Priority
?
252 Views
Last Modified: 2007-12-19
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
Comment
Question by:bryanvahey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Assisted Solution

by:tejas_pathak
tejas_pathak earned 80 total points
ID: 8179544
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
 
LVL 43

Accepted Solution

by:
TimCottee earned 120 total points
ID: 8179580
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
 

Expert Comment

by:CleanupPing
ID: 9446945
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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Introduction to Processes

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question