Saltar al contenido principal

The server threw an exception when running print sequence

Comentarios

2 comentarios

  • Kevin Cross

    I'm not an expert on this but my best guess it is something to do with how the macro was written. You usually get errors like that if the macro fails. Can you add it to your post? Also if you haven't already try running the 1 print first before adding the 2nd.

  • Alvin Li

    Hi Kevin,

    Thanks for the feedback.

    The Macro will be triggered after new invoice data is added into database. The Macro is below

    OpenForm(13|$[NEWID]); //open invoice form with new invoice number

    Activate(5984); //open Print Sequence dialog window

    AutoPressNextPopup();  // prepare the system to auto-press the next Popup message

    Click($[$410000006.0.0]); // Click on the Print Button

     

    //system will pop up “Print Options” dialog window and wait for user input. I don’t know how to use Macro to auto-press the default button, so I just manually click on “OK” button.

    //system start printing the invoice

    //once printing finish, system pop up another dialog window and wait for user input, I just manually click on “Ok” button

    Activate(514); //system pass process control back to Macro, this function close the Print Sequence main window

    Macro running finish here.

    I tested it number of times, most of trials have no problem until I get the error message mentioned previously.

     

Iniciar sesión para dejar un comentario.