Edit file attachment

Hi,is it possible to programmatically launch a file attachment in a rich text field for editing.

I’d like to save the user the manual steps of right clicking and selecting “Edit” on an attachment.

Subject: edit file attachment

check out the document library using the microsoft office suit. It lauches the ms office app via an edit. The tempalte design is supplied on the server.

HTH – Cheers

Subject: RE: edit file attachment

Hello:

Thank for your response!

Unfortunately this is not what I meant. We are not using the MSOffice template but prefer to attach the file with:

@Command([EditInsertFileAttachment]).

To edit the attachment the users have to right-click the attachment and choose Edit. I want to insert an action or hotspot to avoid the right-click. The user just clicks the button/action to edit the attachment.

Thanks in advance.

els verberne

els.verberne@arvgroup.com

Subject: RE: edit file attachment

I understand it is not exactly what you want, but conceptually the template is doing what you want to achive. Granted it is only using MS Office applications, it does launch the attachment when you are in edit mode.

Though you have to a little research, I think you can achieve your goal.

Subject: maybe the answer…

A workaround to edit the attachment can be:

Declarations:

Declare Sub keybd_event Lib “user32.dll” (Byval bVk As Integer, Byval bScan As Integer, Byval dwFlags As Integer,Byval dwExtraInfo As Integer)

Initialize:

keybd_event 18,0,0,0 ’ Alt key down

keybd_event Asc(“T”),0,0,0 ’ T key down

keybd_event Asc(“T”),0,2,0 ’ T key up

keybd_event 18,0,2,0 ’ Alt key up

keybd_event Asc(“E”),0,0,0 ’ E key down

keybd_event Asc(“E”),0,2,0 ’ E key up

No functions are available in ls or formula to simulate right click and edit