Jump to content

sschaefering

Registered Users - Approved
  • Posts

    20
  • Joined

Posts posted by sschaefering

  1. Is there a way to setup a FusionPro PDF so that it would pull from different printer trays? I know you could do this with Doc1 back in the day. And I think someone said there is a way to do it with FP but I don't remember what they said exactly.
  2. add a print sequence order to your data and then make it real small some where on the piece. we use the presort sequence number. using this sequence number makes life easier if your printer jams or if the pieces get cut wrong on the cutter and need to be redone. you wont have to guess or reprint the whole thing.
  3. That was something I should have changed with the sample I posted. The link to external data is only for a record count. It was the only way I could figure out to get the record count to be able to step through each record. Unless that is code I don't need to use with "internal" data.

     

    Making the 6 changes you stated got me way farther than before. Actually getting a table to display now.

     

    I really appreciate your help, Dan.

  4. No its not outputting anything except the plain text at the beginning of the string. "DETAIL OF CURRENT CHARGES\n"

     

       returnStr = 'DETAIL OF CURRENT CHARGES\n<story copyhole="DetailsTable"><table columns="2" space="above:0;below:0"'+ 
                   '< column width=4500 />'+
                   '< column width=4500 />'+
                   '<z newsize=7>';
    

  5. I tried 2 and 1 for the "hstraddle". Could it be anything with the "<z newsize=7>"?

     

    This is the only error now:

    "The amount of text inserted into a flow exceeds the depth

    of all frames in the flow <(null)>. Text is truncated."

  6. I made the change with the column size and made some other changes:

    for (recordWalker = 1; recordWalker <= numRecsExtDF; recordWalker++) {
        // <FONT style="BACKGROUND-COLOR: blue">text</FONT>
        // clear string variable 
       returnStr = 'DETAIL OF CURRENT CHARGES\n<story copyhole="DetailsTable"><table columns="2" space="above:0;below:0"'+ 
                   '< column width=4500 />'+
                   '< column width=4500 />'+
                   '<z newsize=7>';
    
       // check for service details
       if (Field("SERVICE") != "") {
           line = Field("SERVICE");
           if (line.indexOf("|") != -1) {
               examplearray = line.split("|");
               for(x = 0; x < examplearray.length; x++) {
                   value = examplearray[x];
                   if(value != "") {
                       if (value.indexOf(":") != -1) {
                           oneMessage = value.split(':');
                           header = oneMessage[0];
                           header = header.replace("N          Premises Type", "Premise Type");
                           (header.indexOf("Premise Type") == -1) ? (header1 = header.substring(10, 80)) : (header1 = header.substring(0, 80));
                           header1 = header1.replace(/^\s+|\s+$/g, '');
                           header2 = header.substring(140, 50);
                           header2 = header2.replace(/^\s+|\s+$/g, '');
                           messageContents = oneMessage[1].split(':');
                           returnStr += '<row type="header"><cell hstraddle="4" shading="black,15" alignment="left"><p br=false quad=C>'+header1+'<cell hstraddle="4" shading="black,15" alignment="right"><p br=false quad=C>'+header2;
                       } else {
                           header = value;
                           header = header.replace("N          Premises Type", "Premise Type");
                           (header.indexOf("Premise Type") == -1) ? (header1 = header.substring(10, 80)) : (header1 = header.substring(0, 80));
                           header1 = header1.replace(/^\s+|\s+$/g, '');
                           header2 = header.substring(140, 50);
                           header2 = header2.replace(/^\s+|\s+$/g, '');
                           returnStr += '<row type="header"><cell hstraddle="4" shading="black,15" alignment="left"><p br=false quad=C>'+header1+'<cell hstraddle="4" shading="black,15" alignment="right"><p br=false quad=C>'+header2;
                       }
                   }
               }
           } else if (value.indexOf(":") != -1) {
               oneMessage = value.split(':');
               header = oneMessage[0];
               header = header.replace("N          Premises Type", "Premise Type");
               (header.indexOf("Premise Type") == -1) ? (header1 = header.substring(10, 80)) : (header1 = header.substring(0, 80));
               header1 = header1.replace(/^\s+|\s+$/g, '');
               header2 = header.substring(140, 50);
               header2 = header2.replace(/^\s+|\s+$/g, '');
               messageContents = oneMessage[1].split(':');
               returnStr += '<row type="header"><cell hstraddle="4" shading="black,15" alignment="left"><p br=false quad=C>'+header1+'<cell hstraddle="4" shading="black,15" alignment="right"><p br=false quad=C>'+header2;
           } else {
               header = value;
               header = header.replace("N          Premises Type", "Premise Type");
               (header.indexOf("Premise Type") == -1) ? (header1 = header.substring(10, 80)) : (header1 = header.substring(0, 80));
               header1 = header1.replace(/^\s+|\s+$/g, '');
               header2 = header.substring(140, 50);
               header2 = header2.replace(/^\s+|\s+$/g, '');
               returnStr += '<row type="header"><cell hstraddle="4" shading="black,15" alignment="left"><p br=false quad=C>'+header1+'<cell hstraddle="4" shading="black,15" alignment="right"><p br=false quad=C>'+header2;
           }
       } else {
           returnStr = '<row type="header">'+'No Current Charges!';
       }
       returnStr += '<cell rulings="right:thin,black"><p br=false quad=C><cell></table></story>';
       return returnStr;
    }
    
    

     

    And I'm still getting the error:

    "Extra cell started <Line Items> row #0 - Ignoring The amount of text inserted into a flow exceeds the depth of all frames in the flow <(null)>. Text is truncated."

  7. I am trying to format a string to return as a table. I keep getting this error:

    Table cell margins exceed cell width; text cannot be set: Row 0, Column 0

    Table cell margins exceed cell width; text cannot be set: Row 1, Column 0

    Extra cell started <Line Items> row #0 - Ignoring

    Table cell margins exceed cell width; text cannot be set: Row 2, Column 0

    The amount of text inserted into a flow exceeds the depth

    of all frames in the flow <(null)>. Text is truncated.

     

    I'm using Desktop 6.21Pc on Acrobat 9. I have the treat returned strings as tagged text checked.

     

    here is my code:

    var returnStr = '';
    var header = '';
    var header1 = '';
    var header2 = '';
    var services = '';
    var line = '';
    var examplearray = '';
    var oneMessage = '';
    var messageContents = '';
    var recordWalker = 0;
    
    //If statement to check that user is in composition mode
    if (FusionPro.Composition.isPreview == true || FusionPro.inValidation == true) {
       Rule("OnJobStart");
    }
    
    //Count the records in the external data
    numRecsExtDF = externalDF.recordCount;
    
    //Loop through data
    for (recordWalker = 1; recordWalker <= numRecsExtDF; recordWalker++) {
        // <FONT style="BACKGROUND-COLOR: blue">text</FONT>
        // clear string variable 
       returnStr = 'DETAIL OF CURRENT CHARGES\n<story copyhole="DetailsTable"><table columns="2" space="above:0;below:0"'+ 
                   '< column width=200 />'+
                   '< column width=200 />'+
                   '<z newsize=7>';
    
       // check for service details
       if (Field("SERVICE") != "") {
           line = Field("SERVICE");
           if (line.indexOf("|") != -1) {
               examplearray = line.split("|");
               for(x = 0; x < examplearray.length; x++) {
                   value = examplearray[x];
                   if(value != "") {
                       if (value.indexOf(":") != -1) {
                           oneMessage = value.split(':');
                           header = oneMessage[0];
                           header = header.replace("N          Premises Type", "Premise Type");
                           (header.indexOf("Premise Type") == -1) ? (header1 = header.substring(10, 80)) : (header1 = header.substring(0, 80));
                           header1 = header1.replace(/^\s+|\s+$/g, '');
                           header2 = header.substring(140, 50);
                           header2 = header2.replace(/^\s+|\s+$/g, '');
                           messageContents = oneMessage[1].split(':');
                           returnStr += '<row type="header"><cell hstraddle="4" shading="black,15" alignment="left"><p br=false quad=C>'+header1+'<cell hstraddle="4" shading="black,15" alignment="right"><p br=false quad=C>'+header2;
                       } else {
                           header = value;
                           header = header.replace("N          Premises Type", "Premise Type");
                           (header.indexOf("Premise Type") == -1) ? (header1 = header.substring(10, 80)) : (header1 = header.substring(0, 80));
                           header1 = header1.replace(/^\s+|\s+$/g, '');
                           header2 = header.substring(140, 50);
                           header2 = header2.replace(/^\s+|\s+$/g, '');
                           returnStr += '<row type="header"><cell hstraddle="4" shading="black,15" alignment="left"><p br=false quad=C>'+header1+'<cell hstraddle="4" shading="black,15" alignment="right"><p br=false quad=C>'+header2;
                       }
                   }
               }
           } else if (value.indexOf(":") != -1) {
               oneMessage = value.split(':');
               header = oneMessage[0];
               header = header.replace("N          Premises Type", "Premise Type");
               (header.indexOf("Premise Type") == -1) ? (header1 = header.substring(10, 80)) : (header1 = header.substring(0, 80));
               header1 = header1.replace(/^\s+|\s+$/g, '');
               header2 = header.substring(140, 50);
               header2 = header2.replace(/^\s+|\s+$/g, '');
               messageContents = oneMessage[1].split(':');
               returnStr += '<row type="header"><cell hstraddle="4" shading="black,15" alignment="left"><p br=false quad=C>'+header1+'<cell hstraddle="4" shading="black,15" alignment="right"><p br=false quad=C>'+header2;
           } else {
               header = value;
               header = header.replace("N          Premises Type", "Premise Type");
               (header.indexOf("Premise Type") == -1) ? (header1 = header.substring(10, 80)) : (header1 = header.substring(0, 80));
               header1 = header1.replace(/^\s+|\s+$/g, '');
               header2 = header.substring(140, 50);
               header2 = header2.replace(/^\s+|\s+$/g, '');
               returnStr += '<row type="header"><cell hstraddle="4" shading="black,15" alignment="left"><p br=false quad=C>'+header1+'<cell hstraddle="4" shading="black,15" alignment="right"><p br=false quad=C>'+header2;
           }
       } else {
           returnStr = '<row type="header">'+'No Current Charges!';
       }
    }
    returnStr += '<cell rulings="right:thin,black"><p br=false quad=C><cell></table></story>';
    return returnStr;
    

×
×
  • Create New...