dfarrellyallegranj.net Posted October 15, 2008 Share Posted October 15, 2008 Hi all I have a problem. I'm setting up a letter that has an address box on top and a signature in the bottom. Both are variable. I have it the signature working correctly, but the variable image box is just layed under the text box so that it shows through. The problem is, when there is an address 2 in that field the whole letter goes up and down a line thus throwing off how the signature appears in the letter. Is there a way that i can include the variable graphic inside the variable text so that it moves with the letter? Any ideas on how i can set up something like this? Thanks Devin Link to comment Share on other sites More sharing options...
dfarrellyallegranj.net Posted October 15, 2008 Author Share Posted October 15, 2008 Ok, i got it to work using the inline graphic rule. This allowed me to put the graphic right into the text. The only problem is that the graphics are pretty big now. Is there a way that i can set up the inline graphic rule so that the image is a certain size? Thanks again. Link to comment Share on other sites More sharing options...
Dan Korn Posted October 15, 2008 Share Posted October 15, 2008 Ok, i got it to work using the inline graphic rule. This allowed me to put the graphic right into the text. The only problem is that the graphics are pretty big now. Is there a way that i can set up the inline graphic rule so that the image is a certain size? You can create a rule to return the <graphic> tag with any parameters you want, like so: return '<graphic file="' + Field("Destination") + '.jpg" width=7200 height=7200>'; Change the field name and file extension as appropriate. The width and height attributes are in hundredths of points (7200 per inch), so the rule above will force the graphic to be one inch on each side. You can specify just width, or just height, and the graphic will be scaled accordingly without stretching. Please refer to the FusionPro Tags Reference Guide for more information. Look for the bookmark "Graphic Tag Inside Story Tag". Link to comment Share on other sites More sharing options...
dfarrellyallegranj.net Posted October 16, 2008 Author Share Posted October 16, 2008 So i write that into the javaScript in the inline graphic rule? I'm sorry, I really am new to Java. I'm looking through the JavaScript guide now. Link to comment Share on other sites More sharing options...
Dan Korn Posted October 16, 2008 Share Posted October 16, 2008 Yes, you want to completely replace the logic in the Inline Graphic rule you have now. Click "Convert to JavaScript", then select all the text and delete it and replace it with what I suggested above. P.S. It's JavaScript, not Java. They're two completely different languages. Link to comment Share on other sites More sharing options...
allison Posted December 30, 2008 Share Posted December 30, 2008 Is there a way to call out an inline graphic based on a resource that is NOT referenced in a database field? Link to comment Share on other sites More sharing options...
mhilger Posted December 30, 2008 Share Posted December 30, 2008 Hello, Although the built-in "Inline Graphic Rule" rule works by allowing you to select a field that contains the inline graphic file name, you do not need to have your inline referenced in a database field. After you add the graphic as a resource, create a new JavaScript TEXT rule that references that graphic such as this: return '<graphic file="myInlineImage.jpg">'; Give that rule a name (making sure you check the "Treat returned strings as tagged text" checkbox in the rule editor) and then insert that rule into your variable frame. hth. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.