Printing From Commander Not Working S’abonner

0
Avatar
Legacy Poster

Hello

I'm pretty new to BarTender so bear with me..

I am trying to print automatically from BarTender Commander when a file is dropped in to a monitored folder. I have managed to get this working to a HP LaserJet 1320 printer, but what I really want is it to print to a Brother QL-500 label printer.

The code I am using is as follows :

%BTW% /AF="lib://KBE1.btw" /D="%Trigger File Name%" /PRN="HPLJ1320" /R=3 /P /DD /CLOSE
%END%


Which looks up the KBE1.btw label and populates it fine, it will then print to the HPLJ1320, however I can not get it to print to the Brother, I have amended the code as follows :

%BTW% /AF="lib://KBE1.btw" /D="%Trigger File Name%" /PRN="BrotherQL-500" /R=3 /P /DD /CLOSE
%END%


Which is how it is named in Windows.

The Brother printer is set up via USB and the HP via IP directly on the PC. Are their any issues printing to shared printers and is the code case sensitive when it comes to the printers at all?

I can confirm the printer works fine when I print straight out of BarTender.

Specs as follows :

Windows Server 2003 x64
BarTender Enterprise 10.0

Also tested on Windows 7 Pro x64 (where even the HPLJ1320 printer didn't work!)

Any help very much appreciated, if you need any more info please ask.

4 commentaires

0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

1. Remove the /CLOSE command as it is redundant. It is better to use the BarTender command handler as it can be configured to how you wish to cache documents loaded into BarTender.

2. In the script you use the /D="%Trigger File Name%" command which tells BarTender that record data will follow the script for which you want BarTender to connect to for label object data source. However, in your example there is no record data. This is why nothing prints -- BarTender doesn't find any records to print.

You Commander script should look something like this:

%BTW% /AF="lib://KBE1.btw" /D="%Trigger File Name%" /PRN="BrotherQL-500" /R=3 /P /DD
%END%
ABC123,Nuts and bolts,€123.00
0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Hi Ian

Sorry, there is data after that, I just didn't include it originally.

The full script I have is as follows:

%BTW% /AF="lib://KBE1.btw" /D="%Trigger File Name%" /PRN="HPLJ1320" /R=3 /P /DD /CLOSE
%END%
DA24714X,00024556-34E-US,900803613600,,20110610 073034,13,0.000,000000990,B01DA24714X 13SPTLOTAAOOCQ,,,DAC4074W-3CS80 (TMMC),4580,-2F,DAC#01
0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

1. Like I say, remove the /CLOSE command. Other than that the script is good.

2. Obviously make sure that the label format has a text file data connection created with a dummy file of the same field structure.

3. Use the below Commander trouble-shooter to help you find where the problem is:

http://seagullscientific.invisionzone.com/index.php?/topic/55-commander-troubleshooting/

It could well be a user account login issue for your Commander service. Switch Commander to run as an application and to make the BarTender process visible to better help fault finding.
0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Thanks Ian

Switching Commander to run as an application did the trick!

Thanks for your help :)

Vous devez vous connecter pour laisser un commentaire.