Hi Neill,

Any requirements about how your barcode font wants the data to be
encoded, split into lines, or otherwise handled are not imposed by
FusionPro.  You'll have to look at the documentation for your font to
see what it expects.

However, if we can figure out (a) what the offending characters are in
the data, (b) what they are supposed to be in order for the font to
properly render the barcode, and (c) how the multiple lines are supposed
to be output, then we can certainly come up with a rule to do the
necessary replacements and generate the necessary markup tags.

I suspect that your data contains either carriage return ('\r', or ASCII
13) or newline ('\n', or ASCII 10) characters, or both.  If the barcode
font you're using works like the IDAutomationDMatrix font shipped with
FusionPro, then you are correct that each of the lines of the barcode
need to be output separately, and they need to have absolute leading
that matches the point size to avoid gaps.  This can all be accomplished
via tagging.

So, something like this might work:

  var barcodeData = NormalizeEntities(Field("Barcode"));
  var pointSize = 10; // whatever size you want

  barcodeData = ReplaceSubstring(barcodeData, "\r\n", "<br>");
  barcodeData = ReplaceSubstring(barcodeData, "\r", "<br>");
  barcodeData = ReplaceSubstring(barcodeData, "\n", "<br>");

  return "<z newsize=\"" + pointSize + "\">" +
        "<leading newsize=\"" + (pointSize * 10) + "\">" + barcodeData;

Again, it depends on what's in your data and what the font expects in
order to render it correctly.

Dan


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

Reply via email to