Forum Discussion
PaulLanterman
9 years agoQrew Member
yup!
with some code courtesy of Chris - (see his original here )
[image] is your attachment field
[name] is the title of your item ( chair, sofa, etc)
i put it in a <div> that's 150px wide with a white background, so it always prints nice,
then put the NAME on the left and the IMAGE on the right, 50px tall.
"<div style=\"background-color:#FFF; width:150px; height:52px; \"> "
&
"<div style=\"float:left; width:60px; color:#636363; font-size:14px; font-family:Arial; \">" & [Name] & "</div>"
&
" <div style=\"float:right;\"><img style=\" height:50px;\" src=\"" & URLRoot() & "up/" & Dbid() & "/a/r" & [Record ID#] & "/e6/v0/" & [image] & "\" ></div> "
&
"</div>
if you just want the image on the report, and they're all the right size, etc, then you just need the brilliant code from Chris to transform the image into a web url...
with some code courtesy of Chris - (see his original here )
[image] is your attachment field
[name] is the title of your item ( chair, sofa, etc)
i put it in a <div> that's 150px wide with a white background, so it always prints nice,
then put the NAME on the left and the IMAGE on the right, 50px tall.
"<div style=\"background-color:#FFF; width:150px; height:52px; \"> "
&
"<div style=\"float:left; width:60px; color:#636363; font-size:14px; font-family:Arial; \">" & [Name] & "</div>"
&
" <div style=\"float:right;\"><img style=\" height:50px;\" src=\"" & URLRoot() & "up/" & Dbid() & "/a/r" & [Record ID#] & "/e6/v0/" & [image] & "\" ></div> "
&
"</div>
if you just want the image on the report, and they're all the right size, etc, then you just need the brilliant code from Chris to transform the image into a web url...
URLRoot() & "up/" & Dbid() & "/a/r" & [Record ID#] & "/e6/v0/" & [Image]