Hi,in Clien Application there is a button on click of which as attached file is open on web ,but the same code is not working for web Application to open the Attached file on web.
My part of code is as below →
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim view As NotesView
Dim ritem As Variant
Dim Result As Integer
Dim FileName As Variant
Set db=session.CurrentDatabase
Set view=db.GetView("AspireV2_help")
Set doc=view.GetFirstDocument()
Set ritem = doc.GetFirstItem( "file1" )
If ( ritem.Type = RICHTEXT ) Then
Forall o In ritem.EmbeddedObjects
If ( o.Type = EMBED_ATTACHMENT ) Then
Call o.ExtractFile( "c:\help.html" FileName ="C:\Program Files\Internet Explorer\iexplore.exe ""C:\help.html"""
'Msgbox FileName
Result = Shell(FileName, 3)
End If
End Forall
End If
Any help or suggestion will be greatly appreciable.
Regards
Rupesh.