Page 1 sur 1

Faire des liens hypertextes avec Notes

MessagePublié: 11 Juin 2003 à 10:17
par aer
Pour ceux qui veulent faire des liens avec notes, il faut:Un champ de type text (lien)Un bouton parcourir avec :Dim workspace As New NotesUIWorkspaceDim uidoc As notesuidocumentDim temp As VariantSet uidoc = workspace.CurrentDocumenttemp = workspace.SaveFileDialog( False,"Sélectionnez le fichier à lier." ) Call uidoc.FieldSetText( "lienl","file:\\" +temp(0))Un bouton lancer avec :'(Options)Const SW_SHOWNORMAL = 1'(Déclarations)Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (Byval hwnd As Long, Byval lpOperation As String, Byval lpFile As String, Byval lpParameters As String, Byval lpDirectory As String, Byval nShowCmd As Long) As Long'(Sur l'évènement Click)Sub Click(Source As Button)Dim sCheminFichier As StringDim workspace As New NotesUIWorkspaceDim uidoc As NotesUIDocumentSet uidoc = workspace.CurrentDocumentsCheminFichier = uidoc.FieldGetText( "lien" )ShellExecute 0, "", sCheminFichier, "", "C:\", SW_SHOWNORMALEnd SubAvec un grand merci à Stéphane.