Go Back   MarcomCentral (PTI) and FusionPro User Communities > Support > Issues, Questions, Etc.

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 27th, 2019, 12:19 PM
sschardan sschardan is offline
Regular Contributor
 
Join Date: Oct 2008
Location: St. Louis, MO
Posts: 87
Default dynamic inline graphic

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.
Reply With Quote
  #2  
Old February 27th, 2019, 12:26 PM
Alex Marshall's Avatar
Alex Marshall Alex Marshall is offline
FusionPro VDP Support
 
Join Date: Sep 2008
Location: Chicago,Illinois
Posts: 381
Default Re: dynamic inline graphic

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 -
Reply With Quote
  #3  
Old February 27th, 2019, 01:00 PM
sschardan sschardan is offline
Regular Contributor
 
Join Date: Oct 2008
Location: St. Louis, MO
Posts: 87
Default Re: dynamic inline graphic

Thank you, Alex. Following your syntax, here is my modified code that is working:

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:03 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.