Ryan is correct about the need for quotes.  And they have to be regular
quotes, not "curly" quotes.  However, you have to be careful with the
backslashes, because that's the general escape character in string
literals.  So, whenever there's a backslash in a literal string, such as
in a path, you need to add two backslashes, like so:

  "C:\\art\\"

But, you can avoid worrying about backslashes completely by simply using
forward slashes instead:

  "C:/art/"

All modern versions of Windows support either forward or backward
slashes as directory separators.  The forward slash is also the
directory separator on Unix-type systems, so it works on Mac OS X as
well.

Of course, your path won't start with "C:" on Mac.  If you want your job
to access local files from a particular absolute path, you'll need to
specify a different path on Windows and Mac.  You can do something like
this:

  var path = "C:/art/";
  if (FusionPro.isMac)
    path = "Macintosh HD:Art:"; // OR "/Art";

  return CreateResource(path + Field("OrgName" + ".jpg");

Although if you're really moving the job around between systems, you
might find it easier to use a relative path to the graphics.  This
syntax will work on both Windows and Mac:

  var path = "../JobFiles/art/";
  return CreateResource(path + Field("OrgName" + ".jpg");

Where the path is relative to the location of your input file, your PDF
template, or your DIF file in the case of FusionPro Server.

You could also set the path as a field in your data file, or in an
ExternalDataFileEx, for the particular machine on which you're
composing.

Also, if you are running these jobs on the same LAN (local network), you
can share out the path to the resources, and use UNC on Windows, and a
mounted drive path on Mac, instead of local paths.

Of course, if you're collecting a job for FusionPro Web or some other
composition by FusionPro Server or Direct on a remote machine which
doesn't have the same graphics in its local path, then you'll have to
add them as resources to collect them with the job, or manually copy
them over to the server or add them to your Print One.

Dan


--
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
--

Reply via email to