I am using asset now, I just want to know how can you write #image into #asset form. This is what i am using but its not working. I am setting image_name=logo
<img align="left" src="{#asset <%=image_name%>.jpeg @encoding=dataURI}" width='40%'/>
I get this error. From the error, I think its not even substituting image_name
with logo
.
Error: Unable to find or read file C:\source\jsreportapp\<%=image_name%>.jpeg. ENOENT: no such file or directory, open 'C:\source\jsreportapp\<%=image_name%>.jpeg'
at module.exports (C:\source\jsreportapp\node_modules\jsreport-core\lib\util\createError.js:9:13)
at Reporter.createError (C:\source\jsreportapp\node_modules\jsreport-core\lib\reporter.js:259:12)
at readFile (C:\source\jsreportapp\node_modules\jsreport-assets\lib\assets.js:110:20)
at <anonymous>
caused by: Error: ENOENT: no such file or directory, open 'C:\source\jsreportapp\<%=image_name%>.jpeg'