Hello Neill,
If the graphic file names correspond to the field values, then you
should only need one rule for each field in the data which specifies a
graphic, without having to add any Resources to the job. You should be
able to do something like this in a Graphic JavaScript rule:
return CreateResource(Field("graphic 1") + ".jpg");
In this example, a field value of "A1" would result in the graphic
"A1.jpg". Obviously you will need to modify this to match the exact
file names. You could also put the graphic file names, with extensions,
directly into the database fields, which would allow you to simplify the
JavaScript logic even more:
return CreateResource(Field("graphic 1"));
You may need to set the Search Path on the Advanced tab of the
Composition Settings dialog to specify the location of the graphic
files.
-Alex
-----Original Message-----
From: Neill Mennell [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2008 10:25 AM
To: FusionPro Users Forum
Subject: [fusionpro] Insert a Graphic
Hi,
I need a simple javascript rule to insert a graphic, the rule needs to check
the content of a particular column Id for the words 'Cornwall' and when it
gets a match it inserts the graphic.
Any helps to a novice form the UK, would be greatly appreciated
Regards
Neill Mennell
Kingsfield Services Ltd
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
FusionPro 5.0 Now Available!
Variable text on a curve and soft drop-shadows for variable text
LIMITED TIME upgrade offer of $299 per license for current customers:
http://fusionpro.printable.com/store/upgrade
New licenses available for $599 each at:
http://fusionpro.printable.com/store/
All FusionPro 5.0 customers to receive FusionPro 5.1 with
Adobe Acrobat 8 and InDesign CS3 support when released for FREE.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
--
Users of FusionPro Desktop have unlimited free email support. Contact Printable
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm
--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--
--
Note: All e-mail sent to or from this address will be received or otherwise
recorded by the e-mail recipients of this forum. It is subject to archival,
monitoring or review by, and/or disclosure to someone other than the recipient.
Our privacy policy is posted on www.printplanet.com
--
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
FusionPro 5.0 Now Available!
Variable text on a curve and soft drop-shadows for variable text
LIMITED TIME upgrade offer of $299 per license for current customers:
http://fusionpro.printable.com/store/upgrade
New licenses available for $599 each at:
http://fusionpro.printable.com/store/
All FusionPro 5.0 customers to receive FusionPro 5.1 with
Adobe Acrobat 8 and InDesign CS3 support when released for FREE.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
--
Users of FusionPro Desktop have unlimited free email support. Contact Printable
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm
--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--
--
Note: All e-mail sent to or from this address will be received or otherwise
recorded by the e-mail recipients of this forum. It is subject to archival,
monitoring or review by, and/or disclosure to someone other than the recipient.
Our privacy policy is posted on www.printplanet.com
--