Skip to main content

Search

Search

Print two different label to two different printers in one print job

Comments

7 comments

  • Avatar
    Peter Thane

    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
  • Avatar
    Ole Wagner

    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
  • Avatar
    Peter Thane

    There could be something in History Explorer possibly

     

    0
  • Avatar
    Ole Wagner

    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
  • Avatar
    Peter Thane

    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
  • Avatar
    Ole Wagner

    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
  • Avatar
    Ole Wagner

    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.