traba5058 Posted October 9, 2017 Share Posted October 9, 2017 Please help! I'm stuck again. One of our clients has the ability to select up to 6 logos for the footer on a flyer. The logos need to be centered in the footer, so i can't have multiple image boxes. I need to place all images in 1 image box and have it center aligned. I keep getting This graphic rule must return a Resource type of graphic or no error and no logos populating. I've attached sample data. Thanks so much to anyone that can help! TrabaSiteOne_flyer_v5.txt Quote Link to comment Share on other sites More sharing options...
GreggRusson Posted October 9, 2017 Share Posted October 9, 2017 One idea would be to use a textbox and write a rule using a FPTable object with 1 row and up to 6 columns (one for each logo field that's not empty). Then center the returned table... Gregg Quote Link to comment Share on other sites More sharing options...
step Posted October 9, 2017 Share Posted October 9, 2017 You should try returning an inline graphic in a text frame: var result = ''; for (var i = 1; i <= 6; i++) { if (!(logo = Field("Logo " + i))) continue; result += CreateResource('/path/to/logos/' + logo).content; } return result; 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.