Jump to content

dynamic inline graphic


sschardan

Recommended Posts

Ok, my brain is not working today. I want to create a dynamic inline graphic, and I am just not getting the syntax correct.

 

If I write a rule to a hard path, it works:

 

return '<graphic file=".//logos/coag_logo.pdf">'

 

But what I want is something like this:

 

return '<graphic file='".//logos/" + Field("Logo 1")'>'

 

If this is possible, I would greatly appreciate some help.

Link to comment
Share on other sites

You can inline any resource from your resource list by using the "resource" attribute of the "graphic" tag:

 

return '<graphic resource="smile.eps">';

 

or file:

 

return '<graphic file="C:/smile.eps">';

 

or

 

if (Field("Logo") != "")

{

return '<graphic file="' + Field("Logo") + '">'; }

 

Should put that image in without a problem -

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...