Page 1 of 1

#report.uInsertImage SourcePath (RESOLVED)

Posted: Thu Jul 25, 2019 7:15 am
by Fromm603
So, I am trying to create my first report using LANSA, and am using the examples DF_T69H10 thru H40. I can find no documentation on using the #REPORT command (or someone please correct me on what it is called).
I want images on my report. The images are stored on a non IBMi server, on our network. There is a parameter in #report.uInsertImage called SOURCEPATH. I'm hoping that this can somehow point to where the directory that stores the image.
Can anyone help?

Here's my code:
#Report.uInsertImage NAME(#ImageName) FROMTOP(#UseTop) FROMLEFT(#UseLeft) SOURCEPATH(#ImageLoacation)

Unfortunately LANSA's support team could not point me to any documentation or examples.

So should the image show on my screen as well?

Re: #report.uInsertImage SourcePath

Posted: Thu Jul 25, 2019 9:37 am
by MarkD
There's no documentation because these are just a shipped example of one of the many ways you might produce reports.

Re: #report.uInsertImage SourcePath

Posted: Thu Jul 25, 2019 11:16 am
by MarkD
If you look at DF_T69H1O you can see the definition of #REPORT like this....

Code: Select all

* Interface with widget.
Define_Com Class(#DF_T69CTO) Name(#Report)
#Report is just the local program name for an instance of reusable part #DF_T69CTO.

Re: #report.uInsertImage SourcePath

Posted: Tue Jul 30, 2019 9:45 am
by MarkD