Enable option to stay on the same template after print in Print Portal Follow

Avatar
Gene Henson

BarTender Content Team


Apples to: BarTender 2019

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.

Do you have feedback or questions on this article? We encourage you to post them on our Community Forums