Enable option to automatically print again in Print Portal Follow

Avatar
Gene Henson

The default behavior of Print Portal is to return to the label selection screen after each print job. In some cases, users may find it beneficial to remain on the same template after each print job.

This can be enabled by configuring two lines in the main print Print Portal javascript file.

This setting affects all Print Portal users. There is currently no way to configure it on a per user basis.

Enabling Automatically Print again

To enable this setting, you'll need to find two lines in the main Print Portal javascript file. This needs to be done on the server or workstation where BarTender is installed. The two lines are identical, and should be changed to the same thing.

The line that needs to be changed looks like this:


    var returnAfterCompletion = $("#ReturnAfterCompletion").val().toLowerCase() == "true";
  

You'll need to change it to this:


      var returnAfterCompletion = false;
    

Step by Step

  1. On the server where BarTender is installed, open the following file in text a editor: c:\inetpub\wwwroot\BarTender\Scripts\PrintPortal\print.js
  2. Go to line 619. You should see a line that looks like this:
    
          var returnAfterCompletion = $("#ReturnAfterCompletion").val().toLowerCase() == "true";
        
  3. Change the line to this:
    
          var returnAfterCompletion = false;
        
  4. Go to line 1215
  5. Repeat the steps that you did above
  6. Save the file
  7. Refresh the browser or open Print Portal again
    • Note, you may also need to clear your browser cache and history for this change to take effect.

Was this article helpful?

1 comments

0
Avatar
Ron Unthank
Comment actions Permalink

Using 2016 R8, I edited the file print.js per instructions.

No change occurred, Print Portal returned to the label selection screen after the print job executed.

I have been looking for something like this for the past year, disappointed it did not work for me.

Using 2019 R3, I edited the file print.js per instructions.

File would not print, timed out.  Received the following error message.

Update

Using 2019 R3, I edited file print.js as follows;

- on lines 619 and 1215 I changed the text "true" to "false" and Print Portal remained on  the same template after the print job.  GREAT!

Did not have the same result after making these changes on 2016 R8, Print Portal returned to the label selection after the print job. 

Please sign in to leave a comment.