Images in Zen Reports
Hi Guys,
I have images in my zen report, eg.
<table orient="row" width="100%">
<item value="Images:" style="font-weight:bold;font-size:0.9em"/>
<img src="./images/wo/Bearing.jpg" id="WOImage" align="right" height="20px" width="250px"/>
</table>
and if I run the report to the screen the report with its images comes up fine
.png)
but I need to generate and save the report as pdf to a specific path, so I used the below code and it generates the pdf report but the no images, so how can get my report with images?
FYI, I do have those images in a file location and also streamed in a database.
Set obj=##class(MSDS.Maintenance.Report.CBMReport).%New()Set obj.LineID=lineId
Set obj.LocID=loc
Set obj.WOID=wo
Set ret=obj.GenerateReport("C:\temp\Values.pdf",2)
Thanks
Comments
hi Rochdi,
what version of ensemble/iris are you using?
I think it will work in ensemble (I tested in 2017.2) but I'm trying to find out how to configure in iris2022 (I think it's changed) .
the below is my 2017.2 - if I omit the foxit/adobe path then images are not shown on the pdf
.png)
If you run the report via the browser
MSDS.Maintenance.Report.CBMReport.cls?LocID=loc&WOID=wo&LineID=lineId&$MODE=PDF&$LOG=1
where the values of loc,wo, and lineId
is there anything helpful reporting in the log.