Batchmaker Printing: Skip Bartender Print Dialogue 追蹤

0
Avatar
Legacy Poster

I have a batchmaker batch that consists of 2 label templates.  When I execute the batch it pauses after each template while it waits for me to click 'ok' on the Bartender Print Wizard dialogue that comes up.

 

I have already enabled 'immediate print from toolbar' via tools->General Options in Bartender but this does not appear to change the behaviour when printing via batchmaker (not too surprising given the option label). 

 

Here is the BatchMaker file in question:

 

<?xml version="1.0"?>
<XMLScript Version="2.0">
  <Command>
    <Print ReturnPrintData="false">
      <Format CloseAtEndOfJob="true" SaveAtEndOfJob="false">O:\BarTender\Templates\KJHTest-Aliquot.btw</Format>
      <PrintSetup />
    </Print>
    <Print ReturnPrintData="false">
      <Format CloseAtEndOfJob="true" SaveAtEndOfJob="false">O:\BarTender\Templates\KJHTest-Collection.btw</Format>
      <PrintSetup />
    </Print>
  </Command>
</XMLScript>

 

 

 

Here is the VBA code that calls the above BatchMaker script:

 

wsh.Run "cmd.exe /s /c O:\bartender\batch\all.btbat", windowStyle, waitOnReturn

 

 

Any suggestions on how I can skip the Print Wizard prompt? My final use case will involve a batch that prints 4-5 label types per iteration and an MSAccess DB that interatively updates the .btw datasources and then launches the batch file ~100 times per session.  

 

 

 

1 意見

0
Avatar
Ian Cummings
版主
評論操作 永久連結

Can you give us a screenshot of the dialog in question?  I would guess it has nothing to do with the batch file but rather something about the first document that is causing the dialog to appear.  If you can attach the first document I might be able to diagnose the issue.

登入寫評論。