Print two different label to two different printers in one print job
Hi,
I'm using Bartender 2022 R4 Enterprise.
My needs are to in one, to print two different labels to two different printers. The first is a non-label A4 page, and the second a 99x99 mm label, but I think that doesn’t matter. The print must take place from the Bartender WEB Print Portal.
I have no problem printing the first label (the A4 non label), but my headache is how to "feed" the second label with some of the variables used one the first label. My thoughts were that it should be done by building a file integration with Integration Builder.
As long as the printing takes place directly from Bartender, I can make it to work in two ways.
- by enabling "log print jobs to txt file" from the "Administrate" menu, when the print is done a file with the print variables is then written and processed by the installed Integration.
or
- by setting up "Write file" via "Actions" on the "Form Properties" dialog used when printing the first page. When the print is done a file with the print variables is then written and processed by the installed Integration.
However, both mentioned methods are not working when the print takes place from Bartender WEB Print Portal, the file is in both cases not written.
So, I'm a bit stuck, and can't figure out how to solve it. Could it really be that it cannot be done?
Best regards Ole
-
My guess is the IIS-Webprint user account does not have enough permission to access the folder you are trying to write the output file too and so this process fails. Have you tried adjusting where the file is created, perhaps to a subfolder of where the labels are stored and see what happens then?
0 -
Hi Peter,
Thank you for your reply.
It has crossed my mind, if it could be a premission issue, but I expect som issue to be found in Windows event log then, but that's not the case?
However I will investigate it then.
BR Ole
0 -
There could be something in History Explorer possibly
0 -
Hi Peter,
I have not been able to find any log messages in either Windows event log or Bartender History Explore, indicating what is preventing Bartender WEB Print Portal to write the text file.
I have granted IIS-Webprint specific write permission to the text file dump folder without any positive result
Any other ideas on what to look for / try?
Any idea on maybe a third option for doing the coupled print?
Every suggestion is appreciated.
Best regards Ole.0 -
Not sure. Will have to have a play here and see if I can work a way to do it. I wonder if you may need to write the info out via VB instead
0 -
Previously, I considered whether VB was an option, and I guess it is, from what I can read from other forum posts here, but unfortunately, I am not VB skilled at all. :-(
0 -
Finally solved! :-)
After a lot trying back and forth, I succeeded at last to write the file, when printing from the Bartender WEB Print Portal.
The solution was to add the following VB scripting to the “OnNewRecord” document event.
Dim fso, MyFile, FileName, TextLine
Set fso = CreateObject("Scripting.FileSystemObject")
' Open the file for output.
FileName = "c:\temp\test.txt"
Set MyFile = fso.OpenTextFile(FileName, ForWriting, True)
' Write to the file.
MyFile.WriteLine "Column1" & vbtab & "Column2"
MyFile.WriteLine Format.NamedSubStrings("Value1").Value & vbtab & Format.NamedSubStrings("Value2").Value
MyFile.Close
Peter Thane thankyou for pointing me in the VB direction.
Best regards Ole
0
Please sign in to leave a comment.
Comments
7 comments