Jump to content

Leosmith

Registered Users - Approved
  • Posts

    41
  • Joined

About Leosmith

  • Birthday November 20

Converted

  • Location
    Saint Paul

Converted

  • Occupation
    Programmer

Converted

  • FusionPro Products
    Yes

Converted

  • FusionPro VDP software version
    12.0.3

Converted

  • OS
    Windows 10

Converted

  • Acrobat Version
    Acrobat DC

Leosmith's Achievements

Contributor

Contributor (5/14)

  • First Post Rare
  • Collaborator Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

10

Reputation

  1. return Field("Percent").replace("", ' & # 3 7 ; ');remove the spaces in ascii % check - treat return string as tagged text
  2. Check this thread on highlighted text. http://forums.pti.com/showthread.php?t=5129&highlight=highlight
  3. In Manage Pages > Page Usage - all pages should be set to unused. Your Bodypages should be named according to "body page" Using your example CORALVILLE has a front body page named "Coralville 1" and back "Coralville 2"- I am assuming this is the front and back. do similar for other 3 cards. If you don't set your body pages to unused they will print/process. in your OnRecordStart callback rule if (Field("version") == "CORALVILLE") { FusionPro.Composition.SetBodyPageUsage("Coralville 1", true) FusionPro.Composition.SetBodyPageUsage("Coralville 2", true) } else if (Field("version") == "NORTHLIBERTY") { FusionPro.Composition.SetBodyPageUsage("NorthLiberty 1", true) FusionPro.Composition.SetBodyPageUsage("NorthLiberty 2", true) } else if (Field("version") == "WASHINGTON") { FusionPro.Composition.SetBodyPageUsage("Washington 1", true) FusionPro.Composition.SetBodyPageUsage("Washington 2", true) } else if (Field("version") == "CedarRapid") { FusionPro.Composition.SetBodyPageUsage("CedarRapids 1", true) FusionPro.Composition.SetBodyPageUsage("CedarRapids 2", true) }
  4. Hi, It looks like you have a space in fax. FusionPro.Composition.SetBodyPageUsage("CellPhoneF ax", true) You could use a rule similar to the example below so you wouldn't have all the body pages. I believe it returns the results you are looking for. Modified from this thread. http://forums.pti.com/showthread.php?t=4389&highlight=join+phone var numbers = { T: Field("Phone"), M: Field("Cell Phone"), F: Field("Fax"), }; var result = []; for (var label in numbers) if (numbers[label]) result.push(label + ": " + numbers[label]); var delim = " " + '|' + " "; return result.join(delim);
  5. in the rule editor check the box "treat returned strings as tagged text"
  6. The 11 point font would be selected in the text box and in this rule the point size for the credentials would be 9 point. if ((Field("Full Name") != "") && (Field("Credentials") != "")) return Field("Full Name") + ", " + '<span font="Arial" pointsize=9>' + Field("Credentials") + '</span>'; else if ((Field("Full Name") != "") && (Field("Credentials") == "")) return Field("Full Name"); else return ""; I do like this better from Step's example var result = Field("Full Name"); if (result && Field("Credentials")) result += ", " + '<span font="Arial" pointsize=9>' + Field("Credentials") + '</span>'; return result;
  7. added </span> to FORMAT_agency rule and it seems to give the results your looking for. Leo
  8. It goes in the OnRecordStart Rule -- Not in the body of your form. If you are using a data file that is sequence with two "TicketFront" followed by FillerFront1, FillerFront2, FillerFront3. and you have corresponding forms 1 ticket, 3 fillers, and a couple backs named in the SetBodyPageUsage. //OnRecordStart if (Field("Ticket")=="TicketFront") { FusionPro.Composition.SetBodyPageUsage("TicketFront", true); FusionPro.Composition.SetBodyPageUsage("TicketBack", true); } else if (Field("Ticket")=="FillerFront1") { FusionPro.Composition.SetBodyPageUsage("FillerFront1", true); FusionPro.Composition.SetBodyPageUsage("FillerBack", true); } else if (Field("Ticket")=="FillerFront2") { FusionPro.Composition.SetBodyPageUsage("FillerFront2", true); FusionPro.Composition.SetBodyPageUsage("FillerBack", true); } else if (Field("Ticket")=="FillerFront3") { FusionPro.Composition.SetBodyPageUsage("FillerFront3", true); FusionPro.Composition.SetBodyPageUsage("FillerBack", true); }
  9. Yes you can...name them. (FillerFront1, FillerFront2, FillerFront3) In your data file follow the same pattern. In FusionPro you would have 4 templates - Ticket and 3 Fillers. Using the same logic - add bodypage usage. else if (Field("Ticket")=="FillerFront1") { FusionPro.Composition.SetBodyPageUsage("FillerFront1", true); FusionPro.Composition.SetBodyPageUsage("FillerBack", true); } and so on. I would suggest going through training videos https://marcom.com/resources/support-training/fusionpro-video-tutorials/ and as Dan suggested the Users guide and examples.
  10. one way is to create a data file in excel using the fill sequence. An example attached. The seq is Sequence Ticket T_00001 TicketFront T_00002 TicketFront F_00001 FillerFront F_00002 FillerFront F_00003 FillerFront T_00003 TicketFront T_00004 TicketFront F_00004 FillerFront F_00005 FillerFront change the InputRecordNumber rule var str = Field("Sequence"); var result = str.substr(2, 5); return result;This will return the number such as 00001. Change the OnRecordStart rule if (Field("Ticket")=="TicketFront") { FusionPro.Composition.SetBodyPageUsage("TicketFront", true); FusionPro.Composition.SetBodyPageUsage("TicketBack", true); } else if (Field("Ticket")=="FillerFront") { FusionPro.Composition.SetBodyPageUsage("FillerFront", true); FusionPro.Composition.SetBodyPageUsage("FillerBack", true); }the output should be 2 sequenced tickets and 3 filler tickets per sheet. There are other ways to get the results for this that are more simple and elegant. AB_Ticket_Data.txt
  11. All your pages should be set to unused and the OnRecordStart should be: if (!(FusionPro.Composition.inputRecordNumber % 4)) FusionPro.Composition.repeatRecordCount = 2; var isFiller = FusionPro.Composition.repeatRecordNumber == 2; FusionPro.Composition.SetBodyPageUsage("TicketFront", !isFiller); FusionPro.Composition.SetBodyPageUsage("TicketBack", !isFiller); FusionPro.Composition.SetBodyPageUsage("FillerFront", isFiller); FusionPro.Composition.SetBodyPageUsage("FillerBack", isFiller); When I test the imposition is correct. Leo
  12. Your forms should be one up and will be imposed properly. Ticket, Filler, Ticket Back and Filler Back. example is attached. Dan thanks for the example. It is should get much use. Anheuser-Buch_Sat.zip
  13. The USPS uses what they call an IMpB. Intelligent Mail Parcel Barcode. This should get you close. ShippingLabel_3x4_IMpB_FP.zip
  14. Leosmith

    128 Barcode

    Hi Naval, The code provided did create a barcode for me. You need to put it in a rule and then place the rule in a FusionPro text box. I've attached an example. A data file isn't needed because the rule is creating a sequenced number. WBD Label FP.zip
×
×
  • Create New...