sschardan Posted February 27, 2019 Share Posted February 27, 2019 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. Quote Link to comment Share on other sites More sharing options...
Alex Marshall Posted February 27, 2019 Share Posted February 27, 2019 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 - Quote Link to comment Share on other sites More sharing options...
sschardan Posted February 27, 2019 Author Share Posted February 27, 2019 Thank you, Alex. Following your syntax, here is my modified code that is working: return '<graphic file="' + ".//logos/" + Field("Logo 1") + '">'; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.