VLF-One Printing (RESOLVED)

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
nic.hall
Posts: 18
Joined: Sat Jan 16, 2016 4:23 am

VLF-One Printing (RESOLVED)

Post by nic.hall » Tue Jul 30, 2019 3:24 am

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 259 times

MarkD
Posts: 627
Joined: Wed Dec 02, 2015 9:56 am

Re: VLF-One Printing

Post by MarkD » Tue Jul 30, 2019 9:14 am

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') ?

MarkD
Posts: 627
Joined: Wed Dec 02, 2015 9:56 am

Re: VLF-One Printing

Post by MarkD » Tue Jul 30, 2019 9:43 am

This works for me - #Report.uInsertImage Name("abacus.png") Fromtop(15) Fromleft(30) Height(32) Width(32) Sourcepath('vlfone/images/Other/')

nic.hall
Posts: 18
Joined: Sat Jan 16, 2016 4:23 am

Re: VLF-One Printing

Post by nic.hall » Wed Jul 31, 2019 6:48 am

This is working. Thanks for your help.

Fromm603
Posts: 20
Joined: Fri Apr 26, 2019 10:51 pm

Re: VLF-One Printing (RESOLVED)

Post by Fromm603 » Wed Jul 31, 2019 11:09 pm

Is there a way to check if the image exists before issuing the uInsertImage command ?

MarkD
Posts: 627
Joined: Wed Dec 02, 2015 9:56 am

Re: VLF-One Printing (RESOLVED)

Post by MarkD » Thu Aug 01, 2019 10:02 am

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.

Post Reply