Zum Hauptinhalt gehen

Suche

Suche

Form field with calculated default value

Kommentare

3 Kommentare

  • Avatar
    Peter Thane

    I do not think it is possible. 

    The VB can only be processed at certain times during the printing process (see the Event Controlled Scripts, such as OnNewRecord or OnPostPrompt) and there is not an option to run the script whilst displaying the prompted/Data Entry screens, which is what you need to.

    With the script set to run either as OnPostPrompt or OnIdenticalCopies then you can configure BarTender to autoamtically calculate and print the number of labels but you cannot see this calcualted number as one of the values is being entered manually via the Data Entry screen input 

     

    0
  • Avatar
    Graham JENKINS

    Pete,

    Thanks for your reply.

    Just one of those frustrating things. Perhaps I should look at using the API from VB.

    0
  • Avatar
    Peter Thane

    I remember doing something like this in the past and we ended doing the calculation in the background and adding on a couple of extra labels each time to allow for spoilage etc. 

    You could do something similar or even have an box on your label to ask how many extras the users want and then add this by VB to the formula that calculates the number of copies. 

    You maybe be able to use an Action on a data entry form on a non printing label) in which the user chooses the product, and then the Action performs the VB to calculate the number of copies. Once completed this then triggers the opening of a your actual label to which is passed through the database look up value as well as the VB calculated number of labels with this being then set default value for a manual entry field for the label.

    Pete

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.