Jump to content

David Weisman

Registered Users - Approved
  • Posts

    15
  • Joined

Posts posted by David Weisman

  1. When a user (we have two licenses) starts composition the dialog/progress bar appear for a few seconds, then "unexpectedly quit".

    -

    Our solution has been to delete the following section:

    if(picture.countPages == 1)

    FusionPro.Composition.SetBodyPageUsage("Blank", FusionPro.Composition.repeatRecordNumber > 1 && FusionPro.Composition.repeatRecordNumber < finalTicket);

    else

    FusionPro.Composition.SetBodyPageUsage("PDFB", FusionPro.Composition.repeatRecordNumber > 1 && FusionPro.Composition.repeatRecordNumber < finalTicket);

     

    We then begin initiate composition again, cancel after a few seconds, repaste the code back in the document and begin composing again. This happens on the first job since the computer rebooted. Subsequent jobs with the same code will not quit.

     

    I have attached a collected file.

    PC-Standard.zip

  2. This is from OnRecordStart.

     

    When I first added the if/else statement, the file composed fine. The next day FP immediately crashed on composition. I removed the if/else, it composed fine. I added the if/else again, and it composed fine

     

    The next day, exact same scenario. The files that composed fine yesterday again crashed. Removing and re-adding the if/else fixed the problem. Any thoughts?

     

    var Var1 = "JobNumber";

    var Var2 = ".pdf";

    var Var3 = "/Volumes/production/FP_Auto/PDFOUT/";

    var Var5 = "OrderNumber";

    var picture = new FusionProResource(Var3 + Field(Var5) + "_" + Field(Var1) + Var2);

     

    var finalTicket = Int(Field("Qty")) + 4

    FusionPro.Composition.repeatRecordCount = finalTicket;

    FusionPro.Composition.SetBodyPageUsage("Ticket", FusionPro.Composition.repeatRecordNumber == 1);

    FusionPro.Composition.SetBodyPageUsage("TicketB", FusionPro.Composition.repeatRecordNumber == 1);

    FusionPro.Composition.SetBodyPageUsage("PDF", FusionPro.Composition.repeatRecordNumber > 1 && FusionPro.Composition.repeatRecordNumber < finalTicket);

     

    if(picture.countPages == 1)

    FusionPro.Composition.SetBodyPageUsage("Blank", FusionPro.Composition.repeatRecordNumber > 1 && FusionPro.Composition.repeatRecordNumber < finalTicket);

    else

    FusionPro.Composition.SetBodyPageUsage("PDFB", FusionPro.Composition.repeatRecordNumber > 1 && FusionPro.Composition.repeatRecordNumber < finalTicket);

     

    FusionPro.Composition.SetBodyPageUsage("Ticket2", FusionPro.Composition.repeatRecordNumber == finalTicket);

    FusionPro.Composition.SetBodyPageUsage("Ticket2B", FusionPro.Composition.repeatRecordNumber == finalTicket);

  3. Eric,

     

    Thank you very much. I particularly appreciate that you have defined the FusionPro.Composition functions; I have been searching for that information for a while.

     

    BTW - I spent a week down there about 7 years ago when we were getting trained in Fusion Pro web. Funny thing, we didn't get a free lunch then, we went (usually) to the little grocery on the corner.

     

    David

  4. Well,

    I have spent quite a few hours today trying to do this myself. You can tell me I've reached my limit on free meals (though I used FP for 6 years in another job and never asked a question)

    For each record, I want to output a beginning ticket, x copies of the job, and an end ticket. The following code gives me the right count, but it places the two tickets at the beginning and then the repeated page. In Page Usage they are also in the order that I want to output.

     

    FusionPro.Composition.repeatRecordCount = Int(Field("Qty")) + 2;

    FusionPro.Composition.SetBodyPageUsage("Ticket", FusionPro.Composition.repeatRecordNumber == 1);

    FusionPro.Composition.SetBodyPageUsage("PDF", FusionPro.Composition.repeatRecordNumber != 1);

    FusionPro.Composition.SetBodyPageUsage("Ticket2", FusionPro.Composition.repeatRecordNumber == 1);

  5. Thanks, guys

     

    I actually was just coming back to say that I did something that worked (and shocked myself!).

     

    FusionPro.Composition.SetBodyPageUsage("Ticket" , false);

    if (FieldChanged("Column"))

    {

    FusionPro.Composition.SetBodyPageUsage("Ticket" , true);

    }

    FusionPro.Composition.repeatRecordCount = Int(Field("Qty"));

  6. Is there some javascript that will allow me to repeat a record x number of times (like 50, 100 or 200). That value can be either in a field or fixed in the java script.

    What we are doing is printing half a dozen business cards on a sheet, but we need to have 100 copies of some cards, and 50 of another.

     

    Thanks,

     

    David

×
×
  • Create New...