Jump to content

dreimer

Registered Users - Approved
  • Posts

    524
  • Joined

Everything posted by dreimer

  1. Quick question with tables. When I validate my rule, there is a (truncated to 10000 characters) warning. Is this for the validation process or for the composed table itself?
  2. Quick question with tables. When I validate my rule, there is a (truncated to 10000 characters) warning. Is this for the validation process or for the table itself?
  3. I will pass on a code that was posted here that worked for me. var s = Field("YOUR FIELD NAME"); // replace with your field return s.replace(/\$/g,"<superscript>$</superscript>"); Make sure you check the Tagged Text Box!!
  4. Ah, hello, make it a graphic rule!!! Thanks Dan
  5. Is there a way to use a fraction of a point size, say 5.5 with the Create QR Barcode Rule? The client has supplied artwork with a blank area for the barcode and would like to fill it. If I use 6 point it is too large for the area and 5 point will leave alot of white space. Is there a control somewhere to override? I tried to use a fraction and it doesn't change anything. I also tried the Preferred format with no luck. Any help would be greatly appreciated.
  6. That is how I create the IMB. Put the ADFT string in the text box and apply the font. I am using a font called USPSIMBStandard. Is that space in the string you copied really in there?? That may be a problem, you should have 65 characters and no spaces.
  7. Yeah, I was thinking I could figure out the rest so I just sent a quick sample. Thanks again for your help!!!
  8. Thanks for the help on that code Dan. I was wondering now how to edit the last line. thisRow.SetContents(row, XDF.GetFieldValue(0, row) + " 48 x 8", itemCount); I am going to have them feed me the data I need for the table in one field, for example: "AC_Apple Computers & Monitors_48 x 8". So then I want the first column to have "AC", the next column to have "Apple Computers & Monitors_48 x 8". I have tried to write this but am having trouble. So I want the second column to have everything in the header field except the "AC_" and that number of characters could vary greatly. thisRow.SetContents(Left(XDF.GetFieldValue(0, row),2), Right(XDF.GetFieldValue(0, row),-3), itemCount); Sorry think I got it now. thisRow.SetContents(Left(XDF.GetFieldValue(0, row),2), Mid(XDF.GetFieldValue(0, row),4,50), itemCount);
  9. Wow, that works great, may need to tweak a few things but that will get me going in the right direction. Thank You!!!
  10. OK, so now I am told that the fields that I had harcoded will change each time I would want to do this. The first hardcoded "AB" can be ignored for my next question. The second hardcoded part is from the header record and that I would like to have in my table and then each record in my data may have that component or not and that would be inserted into the table. I have attached an example of what I am trying. I also attached a sampling of the data. Is there a way to place the header for each record in my table when there is a quantity of that component and suppress that row in the example if there isn't a quantity? As you can see, I only posted a part of it, I could have alot more rows then 4.Example.pdf Test.txt
  11. So, below is a sampling of the code for the table I am trying to create. I have some Hard Coded text that I only want to appear when the data field for that row is not empty. Can anyone help me out? TIA new FPTable; var myTable = new FPTable; myTable.AddColumns(4800, 28800, 4800); myTable.AddRows(4); myTable.Rows[0].Cells[0].SetBorders("Thin","Black","Top","Bottom","Right","Left"); myTable.Rows[0].CopyCells(0,1,2); myTable.Rows[0].Cells[0].HAlign = "Center"; myTable.Rows[0].SetContents("AB", "Apple Computers & Monitors 48 x 8", Field("Apple Computers & Monitors")); myTable.Rows[1].Cells[0].Margins = new FPTableMargins; myTable.Rows[1].Cells[0].Margins.Top = 40; myTable.Rows[1].Cells[0].Margins.Bottom = 40; myTable.Rows[1].Cells[0].SetBorders("Thin","Black","Top","Bottom","Right","Left"); myTable.Rows[1].CopyCells(0,1,2); myTable.Rows[1].Cells[0].HAlign = "Center"; myTable.Rows[1].SetContents("AC", "Audio/Video Accessories 48 x 8", Field("Audio/Video Accessories")); myTable.Rows[2].Cells[0].SetBorders("Thin","Black","Top","Bottom","Right","Left"); myTable.Rows[2].CopyCells(0,1,2); myTable.Rows[2].Cells[0].HAlign = "Center"; myTable.Rows[2].SetContents("AD", "Audio/Video Cables 48 x 8", Field("Audio/Video Cables")); myTable.Rows[3].Cells[0].SetBorders("Thin","Black","Top","Bottom","Right","Left"); myTable.Rows[3].CopyCells(0,1,2); myTable.Rows[3].Cells[0].HAlign = "Center"; myTable.Rows[3].SetContents("AE", "Automotive & Handheld GPS 48 x 8", Field("Automotive & Handheld GPS"));
  12. Did you check the program folder to see if the file exists on the system?
  13. Without testing it myself, I would think you don't need a rule to create the check digit since you have it already. Just apply the font to that field in your text box. It may need encoding though, so you could just create a rule trimming the last character off and using that in the barcode rule. Just tested it and you do need to use the rule. This should work. Create this text rule and then use the rule as your field to input into the Barcode Rule. return Right(Field("YOUR DATA FIELD"),12)
  14. Thanks Dan, I sent an e-mail off to support. And now the client wants an interleaved 2 of 5 barcode now anyway.
  15. Does the Windows version of FP 7.2 support the 3 of 9 barcode?? The font is not supplied in the installation as I have reinstalled already. I was going to copy the fonts from my MAC installation but those fonts will not work on Windows? Anyone else have this issue??
  16. OK, so know I have another issue. I was able to get the arrows to work correctly on my PC but I need to also create a 3 of 9 barcode and for some reason the IDAutomation font is not there for this type of barcode, using the FP built in rule. I even re-installed Fusion Pro. So, I tried to do this job on my MAC and I get the opposite, the font is available for the 3 of 9 barcode and it works correctly with the built in rule, but I can't get any of the three codes Dan posted to create the arrows. Anyone have any ideas???
  17. Perfect Dan, works great, thanks!!
  18. I found the symbols I would like to use in rules in Fusion Pro. Is this possible to do? Here is my code. The U+25B2 is an up arrow and the U+25BC is a down arrow. if (Right(Field("Locus"),Len("A")) == "A") { return "<span>" + RawText("U+25BC") + "</span>"; } if (Right(Field("Locus"),Len("B")) == "B") { return "<span>" + RawText("U+25B2") + "</span>"; } return ""; Thanks for any help.
  19. if (Field("Your Field") != "") return Field("Your Field") + ", You Could Win $1000!"; else return "You Could Win $1000!";
  20. Thanks for that step, but I have already figured it out and have it set to always use the same field name since it will always be the same field coming in from my presorting software used to create the IMB.
  21. Actually, it works for the one off job, but now I need to figure out how to add it to the RulesTemplate.js file. Not cooperating right now. Got it, some simple little differences in the rule editor and the .js file can be annoying.
  22. Perfect thanks step. I promise I will continue to try and remove the novice from my signature!!!!
  23. I want to create an IMB Rule and place it into the RulesTemplate.English.js file and not have to assign the point size every time. So I would like to have that set in the Template rule. I know this is probably simple but, just not able to figure it out, below is my code and I want to assign the point size of 16. Thanks. return '<f name="USPSIMBStandard">' + Field("Intelligent Mail barcode")
×
×
  • Create New...