dcCalif
2nd June 2007, 03:23
Im trying to open a .tif file from a LN form. I've tried various ways and all fail:

Attemp 1)
cmdline = "%windir%/system32/rundll32.exe %SystemRoot%/system32 /shimgvw.dll,ImageView_Fullscreen c:/test.tif "
ierr = run.prog(cmdline,"",RP_WAIT)

This ran but did not open the file. If I run this command in a dos window
it works great.

Attemp 2)

cmdline = "c:fax2.bat"
ierr = run.prog("command.com","c:fax.bat",RP_WAIT)

I tried to put it in a bat file and again nothing happend.

Attempt 3)
ierr = start.client.program("c:\fax.bat", "C:\")

I found that I did have a ntvdm.exe in the taskmanager but still no
image.

Thanks in advance.

george7a
2nd June 2007, 15:54
Hi,

If you want to open the tiff file on the client you need to use app_start function that is in the ottdllbw dll. Check this link for an example:
http://www.baanboard.com/baanboard/showthread.php?t=32476&highlight=app_start

I hope it helps,

- George