Page 1 of 1

VLF-One Printing (RESOLVED)

Posted: Tue Jul 30, 2019 3:24 am
by nic.hall
We are trying to use the uInsertImage method in DF_T69CTO.

#Report.uInsertImage Name("abacus.png") Fromtop(#UseTop + 15) Fromleft(20) Height(30) Sourcepath('C:\LANSAG14\X_WIN64\X_LANSA\x_DEM\web\vl\vlfone\images\Other\')


The result is border outline in the position that the image should be. No image is displayed.
Capture.PNG
Capture.PNG (4.05 KiB) Viewed 211 times

Re: VLF-One Printing

Posted: Tue Jul 30, 2019 9:14 am
by MarkD
This is in a VL-Web application so probably the path has to be a full or relative URL.

It's probably relative to the C:\LANSAG14\X_WIN64\X_LANSA\x_DEM\web\vl\ folder which is where your VL-Web pages come from.

Maybe try something like Sourcepath('/vlfone/images/Other/') or Sourcepath('/vlfone/images/Other') ?

Re: VLF-One Printing

Posted: Tue Jul 30, 2019 9:43 am
by MarkD
This works for me - #Report.uInsertImage Name("abacus.png") Fromtop(15) Fromleft(30) Height(32) Width(32) Sourcepath('vlfone/images/Other/')

Re: VLF-One Printing

Posted: Wed Jul 31, 2019 6:48 am
by nic.hall
This is working. Thanks for your help.

Re: VLF-One Printing (RESOLVED)

Posted: Wed Jul 31, 2019 11:09 pm
by Fromm603
Is there a way to check if the image exists before issuing the uInsertImage command ?

Re: VLF-One Printing (RESOLVED)

Posted: Thu Aug 01, 2019 10:02 am
by MarkD
You could execute a server module method call that used the OV_FILE_SERVICE (CHECK_FILE ......) built-in function call to check I guess.
https://docs.lansa.com/14/en/lansa015/i ... ervice.htm
Someone else might know how to a check directly from the client.