Solved

Lotus notes Hotspots

Posted on 2002-05-20
5
1,264 Views
Last Modified: 2012-06-21
Does anyone know how to place a hyperlink to a file on the fileserver with lotus notes? I can do this manully by going Create\hotspot\URL link and pasting in the path. I need to be able to do this in code.
When i send this to someone with notes 5.0 it works, This doesn't work with 4.6  

Here is the code I am using:
Dim session As Object
Dim db As Object
Dim doc As Object
Dim msg, MyAttachment As String
Dim rtitem As Object
Dim Subj As String
Dim Col As Object
Dim x As Long
Dim i As Variant



Const EMBED_ATTACHMENT = 1454

Set session = CreateObject("Notes.NotesSession")
Set db = session.GETDATABASE("", "")
Call db.OPENMAIL

Set doc = db.CREATEDOCUMENT


msg = "'file:\\c|/test.dat'"
Subj = "hyperlink Try"

Call doc.REPLACEITEMVALUE("SendTo", "Paul Ward")
Call doc.REPLACEITEMVALUE("Subject", Subj)
Call doc.REPLACEITEMVALUE("ReturnReceipt", "1")


Set rtitem = doc.CREATERICHTEXTITEM("Body")
Call rtitem.APPENDTEXT(msg)


'MyAttachment = "N:\ward\Projects\lotusnotes\Lotusnot.doc"
'Call rtitem.EMBEDOBJECT(EMBED_ATTACHMENT, "", MyAttachment)

doc.SAVEMESSAGEONSEND = True

'This not working
Call doc.PUTINFOLDER("Misc\hero")

Call doc.SEND(False)

Set session = Nothing

MsgBox "Email sent.", vbOKOnly + vbInformation


Also the PutInFolder method is not working?????????????
Thanks

Wardy
0
Comment
Question by:Wardy
[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
  • 3
5 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7022189
Post a link with 0 points regarding this in Notes TA.
0
 

Author Comment

by:Wardy
ID: 7022211
I am not sure what Notes TA is?
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7022934
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7022939
By the way, Notes 4.6 still uses OLE, Notes 5 uses "almost" true COM. SO, when you work with notes 4.x, all objectsdeclarations must be "as object".
If you declare as object, 4.x and 5.x code would works.
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 350 total points
ID: 7038069
Next time I believe I can give you a better solution.

For others, Here is the link to the question in Lotus notes TA,
http://www.experts-exchange.com/jsp/qShow.jsp;jsessionid=F7EC466F7FB001838AA541B0358EAEBE?ta=lotusnotes&qid=20302691

~Hemanth
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

726 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