Xmlresponse Message Follow

0
Avatar
Legacy Poster

If I submit this BTXmlScript to BarTender, specifying that I want the Print Data Returned...

 

<?xml version="1.0" encoding="utf-8"?>
<XMLScript Version="2.0">
  <Command>
    <Print ReturnPrintData="true">
      <Format CloseAtEndOfJob="true" SaveAtEndOfJob="false">D:\Seagull\BarTender\Labels\Alconex\MyLabel.btw</Format>
      <PrintSetup>
        <IdenticalCopiesOfLabel>1</IdenticalCopiesOfLabel>
        <Printer>LANIER MP C3001/LD630C PCL 6</Printer>
      </PrintSetup>
    </Print>
  </Command>
</XMLScript>

 

 

Where can I find the reponse after the script has been processed?  Is the reponse a file on the hard drive?  If so, what folder does the file get written to and what's the file extension?  If not a file on the hard drive, where in BarTender can the response be found and viewed?

 

4 comments

0
Avatar
Michael Toupin (mtoupin
Comment actions Permalink

How are you trying to use the BTXML script? 

 

BTXML scripts executed through the Command Line interface or from the File menu in BarTender do not return or save XML responses.  If you're using Commander or the .NET SDK you'll need to appropriately configure them to generate the output to an appropriate location.

0
Avatar
Legacy Poster
Comment actions Permalink

I'm dropping the BTXmlScript files into a folder scanned by Commander.  Commander sees the *.dd file, processes it, and deletes it.  If all goes well, the label is printed.

 

When a label doesn't print, I want to be able to temporarily set the Print command's ReturnPrintData attribute to "true" so I can get a response and investigate the problem.  I thought this would be as simple as adding the ReturnPrintData attribute to the Print command in the BTXmlScript file, but there must be more to it.

 

Can you tell me what needs to be configured in Commander to create the response when ReturnPrintData is included with the Print command in the BTXmlScript file?

 

Any help would be appreciated.

 

Thanks.

0
Avatar
Michael Toupin (mtoupin
Comment actions Permalink

What you'll do is add another command into the task after the BTXML one, do a 'save to file' command, and set your source as 'BTXML Script Command Response'.  Specify the file path and it will save the files as you're attempting to do.

0
Avatar
Legacy Poster
Comment actions Permalink

Thanks!  I will try that.

Please sign in to leave a comment.