Enable option to stay on the same template after print in Print Portal
Applies 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
- On the server where BarTender is installed, open the following file in text a editor:
c:\inetpub\wwwroot\BarTender\Scripts\PrintPortal\print.js
- Go to line 619. You should see a line that looks like this:
var returnAfterCompletion = $("#ReturnAfterCompletion").val().toLowerCase() == "true";
- Change the line to this:
var returnAfterCompletion = false;
- Go to line 1215
- Repeat the steps that you did above
- Save the file
- 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.