On a Windows 7 system with Version: 6.0.5.2 (x64).
I wish to extract the file link data from a LO Base form field and use it to open an image viewer in a new window so the image can be rotated and or zoomed.
I will associate the macro with a button on the form.
I can get the viewer to open with a hard coded parameter string, but cannot figure out how to get the link to the image into the variable named MyParam.
Any suggestions, examples or links to instructions would be greatly appreciated.
----------Macro as it stands copied from various sources -
Sub ImageView
Dim MyWindowstyle As Integer
Dim MyParam As String
Dim MyPathname As String
Dim MyBsync As Boolean
MyPathname="C:\Program Files (x86)\IrfanView\i_view32.exe"
REM MyParam="E:\User\Devlpmnt\DataProject\Images\Volume 58 021.jpg"
MyWindowstyle = 1
MyBSync=true
Shell(MyPathname, MyWindowstyle, MyParam, MyBSync)
End Sub