VB IN NOTES

How to call data control ocx which is there in vb
and how to use that control in lotusnotes

If you are working in vb how to dump the values from vb into
lotusnotes documents
please help me out
rajanbAsked:
Who is Participating?
 
ghassan99Connect With a Mentor Commented:
This is an example from the book, to copy a field from a document and put its value in another fields in another document. u can modify it for your use.  I suggest u check this book, its a GREAT free book from Lotus:
http://www.lotus.com/developers/redbook.nsf/a1d792857da52f638525630f004e7ab8/a4c75547a4aba2ad852564580069adbd?OpenDocument

Dim session As Object
Dim db As Object
Dim view As Object
Dim doc_src As Object
Dim doc_dest As Object
Dim item As Object
Set session = CreateObject("notes.notessession")
Set db = session.GetDatabase("", "test.nsf")
Set view = db.GetView("By Author")
Set doc_src = view.GetFirstDocument()
Set doc_dest = view.GetNextDocument(doc_src)
Set item = doc_src.GetFirstItem("Subject")
Call item.CopyItemToDocument(doc_dest, "Subject")
Call item.Remove
Call doc_src.Save(True, False)
Call doc_dest.Save(True, False)
Set session = Nothing
0
 
ghassan99Commented:
u can use embedded objects, or put an activeX in an RTF.  There is a good book in www.lotus.com/redbooks called 'lotus script for visual basic programmers' I think it might be of help.
0
All Courses

From novice to tech pro — start learning today.