Jump to content

Leosmith

Registered Users - Approved
  • Posts

    41
  • Joined

Everything posted by Leosmith

  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
  15. Hi Velo, I would start with creating a 5.5 x 3.5 template and insert pages as needed depending on the formatting requirements. Attached is a project that you can view which has different formatting requirements. It is not the best written for FP but it works and should give you an idea. On your data I couldn't figure out what you had for delimiter. Leo M_EDLP_FP.zip
  16. You can make a separate bullet paragraph box and place with appropriate spacing. In the example three bullet rules were put in same box and aligned. In hindsight not sure why I did it that way but got results. return '<p tabstops="0;1250,Left,,;" lindent=1250>' + "•" + '<t>' + "Pope Francis’s visit in September touched America’s heart and influenced congressional leaders. ...." the code above was from eslewhere in the forum. attached example project were paragraphs were put together. 178372_TexasLetter_FP.zip
  17. Check box in rules editor "Treat returned strings as tagged text" Step - thanks for this and the many other well commented posts. Leo
  18. Hi, Thanks Ste - great example of how to simply with proper programming. I inherited about a dozen templates that I want to go back through. Didn't know where to start. Leo
  19. Hi, The problem definition is pretty skinny... Here is an example of a rule that has multiple options for dollar denominations. There are a couple field options in the file and the Dollar might be full or cents. This might give you some ideas.
  20. Hi, I believe you need to get your data in usable format with 1 record with 4 cells. to do this: Copy the data from the first column 3 more times. Delete 1 cell from column 2, 2 cells from column 3 and 3 cells from column 4. You should end up with 1 2 3 4 2 3 4 5 3 4 5 6 ...and so on. Color the first four rows different colors in excel. highlight the first four records and use the format painter by going to end of records - selecting all and format. All your rows should be color formatted. Filter on the color that has the sequencing you want and remove excess. results after filter should be. 1234 5678 9101112 and so on.
  21. Hi Fellsway, The pic you attached was a little skinny on the requirements - doesn't provide much dimensional info. Attatched is an example of what I came up with. There was some problem on my output which I don't know the cause of. The output did scan with a barcode reader. You would need FusionPro 9.3 to adjust sizing from the setup. The barcode rule that I used: var BarcodeData = NormalizeEntities(Make128Barcode(Field("BarcodeNumber"))); return BarcodeData; Label128Test.pdf Code128Test_FP.zip
  22. Hi Ste, Thanks for your step by step reply. Worked great. It is very helpful for learning and understanding Javascript and FusionPro. Leo
  23. Hi Milind, example attached. I googled for an excel forumula for Mod43 check digit and got this. http://www.excelbanter.com/showthread.php?t=426855 The excel formula was applied to the eight digit number a check digit and the results were concatenated with the alpha characters. In FusionPro the building block was used to create the 3of9 barcode and applied to the field. The second barcode is the same except the alphas were applied in a FusionPro rule. Not sure if any of it is correct or what you are trying to achieve but the barcodes do scan. Note: I haven't tried Steve's solution yet but I believe it would be a more exceptional solution to have the work/process all done in FusionPro. Leo 3_of_9_Label_Test_3x4_FP.zip
  24. Hi Ste, Thanks again for your response. I was thinking about the imposition problem and the visual you provided. I sorted the data by odd - even and "fielded" the data 2up. It looks like output is correct. I was concerned I didn't have the skill to be able to place graphics properly. The prep department creates all the PDF work for me. I don't know much of anything about that either. Day 90 - having fun. Leo
×
×
  • Create New...