HI,
I have a form in that one rich text field is there where Admin people will attach an logo or import an logo. Logo will not be constant one. Same logo I want to show in another form where people can’t edit that logo.Please help me out regarding this.It’s very urgent.
Subject: To get an attachment or imported image in to another form.
Why dont use shared field .
You can try this .
Subject: To get an attachment or imported image in to another form.
Not sure on how you will access the document being access by your user but you can create a duplicate any item in the document access by the admin then save it in the newdocument with different form then use the workspace.EditDocument(true,newdocument) to load it in UI
Subject: RE: To get an attachment or imported image in to another form.
Can you please tell me in brief densedy isasuir about your way of doing.
Subject: RE: To get an attachment or imported image in to another form.
The idea here is that you should have a profile document that will store the images you will use in your application. This profile document can be only edited by the admin. The admin can change the contents of it anytime. When your user try to load a newly created document containing the images you saved in your profile you need to do create and save the document first in the background before loading it in UI. This is necessary because you cannot update the contents of the rich text in UI. When creating the document via background you may use this code profiledoc.CopyAllItem(newdoc,True) to copy all the fields in the profile document to your new document. After copying then change your “Form” field value to the value you required then save it. Once the document is saved set s uidoc to load the document in UI. You may use this code set uidoc=workspace.editdocument(true,newdoc). From there will may now see the images you saved in your profile document in the newly created document. Note that this is spplicable if you tend the user to load a new document. If the document was previously saved then you may use a different approach but same idea on how you can use the images used in other documents. Hope this clarifies you.
Subject: To get an attachment or imported image in to another form.
HiIt work for diffrent fields in the same form, try to change the form name in “CopyItemToDocument” parameters.surly it will work…gud luck
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Dim itemA As NotesItem
Set uidoc = ws.CurrentDocument
Set doc =uidoc.Document
Set itemA = doc.GetFirstItem( "Rt1" )
Call itemA.CopyItemToDocument(doc, "Rt2" )
Call doc.Save(True,False)