Jump to content

rgreenidge

Registered Users - Approved
  • Posts

    57
  • Joined

Everything posted by rgreenidge

  1. I have setup a template with repeating records and the Slipsheet option, however when I go to compose, the slipsheet prints by itself and does not get imposed with the rest of the records. What am I missing? Any help is appreciated. Thanks, Richard:confused:.
  2. I have created a template to call in two text variables on a page. Is it possible to repeat that template so that they flow from one column to the next and possibly continue onto an overflow page or is this type of job better suited for a table? I have attached a PDF sample for reference. Any help is appreciated. Thanks, Richard. TIER 1_Exterior_example.pdf
  3. I have created a template to call in two text variables on a page. Is it possible to repeat that template so that they flow from one column to the next and possibly continue onto an overflow page or is this type of job better suited for a table? I have attached a PDF sample for reference. Any help is appreciated. Thanks, Richard. TIER 1_Exterior_example.pdf
  4. I just experienced the same error. In my case it was caused by accented characters in the filename. I was using the following Script to create a filename from the "Name" field in my data. There was a French name with accents in it. I was using the following javascript: return Field("Job Number") + "_" + Field("Name").replace("È","e").replace("É","e") + "_" + Field("Store "); This Part In OnRecord Start: if (FusionPro.Composition.repeatRecordNumber == 1) FusionPro.Composition.OpenNewOutputFile(Rule("Filename Rule") + "." + FusionPro.Composition.outputFormatExtension); I used the .replace command to fix the problem. Any other suggestions would be appreciated. Thanks, Richard.
  5. I am trying to create a rule that Cross references to fields, if they match I want to output that record and it's repeat qty. I would also like to have a slipsheet between records, that prints some of the fields from the extrenal file ie: the Shipping day. So far I have tried to use the following for the External data part from the example file you posted, but it does not seem to be linking to the external data. I am sure there maybe parts that are not needed to want I am trying to accomplish Placed in OnJobStart Rule: //Link to the external data file. //The '\t' is used to indicate TAB delimited data in this external data file externalDF = new ExternalDataFileEx('Fri Kit 36.txt', '\t'); if(externalDF.valid != true) { Print('Failed to link to the external data file in OnJobStart'); } Separate Rule Created: //Create an empty variable that will be populated with a //string of text that lists the customer's purchases returnStr = ''; //The following if statement will detect if we are currently in preview //mode or editing this rule (versus composing output). If so, the script //will manually call the OnJobStart rule so the link to the external //data file can be established. OnJobStart is called automatically when //a full composition is run. if(FusionPro.Composition.isPreview == true || FusionPro.inValidation == true) { Rule("OnJobStart"); } //Get a count of the total number of records in the external data file numRecsExtDF = externalDF.recordCount; //Now, loop through all records in the external data file and //find the records that belong to the customer. This is done //by comparing the value of "CustomerID" from the main input //data file to the value of the "CID" field in the external data //file. // //Note that in this example, there can be multiple records in the //external data file for each customer which is why we are going to //look at every record in the external data file. for (recordWalker=1; recordWalker <= numRecsExtDF; recordWalker++) { //Compare the value of the CID field in the current record //we are looking at in the external data file to the value //of the CustomerID field in the main data file. if (externalDF.GetFieldValue(recordWalker, 'Store_Num') == Field("Store_Num")) { //Check to see Ship Day. If it is, let's format it differently if (externalDF.GetFieldValue(recordWalker, 'day') == 'Friday') { returnStr += 'Store_Num' + externalDF.GetFieldValue(recordWalker, 'Store') + '</b>'; } else //OK - so this is a normal product - not a Tax item { returnStr } } } return returnStr; Thanks in advance. Richard.
  6. Thanks Dan, that worked perfectly. Thanks to Step also for your input. Richard.
  7. Hi Step, still not working. I tried changing the text where the words "OutputFormat" are with ".pdf" and this did not work either. Thanks, Richard.
  8. Hi Step, thanks for the quick reply. I tried placing the Script in the OnJobStart callback rule and nothing changed. Do I have to place it in another rule? Thanks, Richard.
  9. We have been using the following script below to name our files in the OnJobStart call back rule to automatically name our files with the name of the data file when we compose in FP7. When we try to use it in FP8 it generate a filename with a very long numeric value. Hoping someone has an idea for a fix or a substitute script. Any help is appreciated. Thanks, Richard inputFileExt = ".TXT" newFileExt = FusionPro.Composition.JobOptions["OutputFormat"]; newFileName = FusionPro.Composition.inputFileName; switch (newFileExt){ case "Indigo PPML": newFileExt = ToLower("." + "PPML"); break;; case "PostScript": newFileExt = ToLower("." + "ps"); break;; case "Digimaster": newFileExt = ToLower("." + "ps"); break;; case "Single-File VPS": newFileExt = ToLower("." + "vps"); break;; case "Multi-File VPS": newFileExt = ToLower("." + "vps"); break;; default: newFileExt = ToLower("." + newFileExt); break;; } for (i = 0; i<=Len(newFileName); i++){ tempChar = Right(newFileName, i); if(tempChar == ToUpper(inputFileExt)){ newFileName = Left(newFileName, Len(newFileName)-i) + newFileExt; FusionPro.Composition.outputFileName = newFileName; return; } }
  10. Thanks, Tony. This is great. I appreciate the help. Richard.
  11. Hi Tony, I'm hoping you can help me out. I have to create some 2D Barcodes. I have used your script that you posted back in May and it works perfectly. However I need to format it so that the size X in each symbol will be either a matrix of 16x48 or a matrix of 18x18. Is there a spot in your script that I can enter in the format number to control the size of the Barcode. /*dataForBarcode = Field("account_num"); dmBarcodeObj = new DataMatrixBarcode('', '', '', '', '', ''); markupData = dmBarcodeObj.Make(dataForBarcode); return markupData; */ dataForBarcode = Field("memid"); dmBarcodeObj = new DataMatrixBarcode('', '', ''); dmBarcodeObj.pointSize = 4; dmBarcodeObj.encodingMode = "BASE256"; markupData = dmBarcodeObj.Make(dataForBarcode); return markupData; Thanks in advance. Thanks, Richard.
×
×
  • Create New...