Aller au contenu principal

Recherche

Recherche

Vb Script Or Commander

Commentaires

4 commentaires

  • Avatar
    Shotaro Ito
    Hi Labelguy,

    As of BarTender 9.4, BarTender format's VB Script is not able to select which format to print - as VB Script is inside of label format.
    What you can do is modify existing objects on current format.
    See some ability of BarTender Automation Edition's Object Automation by VB script.
    [url="http://seagullscientific.invisionzone.com/index.php?/topic/213-how-to-change-object-properties/"]How To Change Object Properties?[/url]

    To dynamically select label format from application, you can use Commander.
    Unfortunately Commander / BarTender cannot decide which format to print in CSV data, so what you can do is..

    a. Use multiple tasks with BarTender command.
    Task A detects "FMTA*.csv" file and print "formatA.btw"
    Task B detects "FMTB*.csv" file and print "formatB.btw"
    ...etc
    See [url="http://s3.amazonaws.com/SeagullBarTender/ftp/WhitePapers/WhitePaper_CommanderExamples_English.pdf"]White paper: Commander Examples[/url] #2.

    b. Use commander script.
    at the top of CSV file, you need to add commander script like below.
    [code]%BTW% /AF="C:\bt\formatA.btw" /PRN="MY Printer" /D="%Trigger File Name%" /R=3 /P /DD
    %END%
    "PRODUCTID","PRODUCTNAME","QTY"
    "PD-001","Blood Diamond","750"
    "PD-017","Shutter Island","2140"
    [/code]
    Task Command type is just "Commander Script".

    See [url="http://s3.amazonaws.com/SeagullBarTender/ftp/WhitePapers/WhitePaper_CommanderExamples_English.pdf"]White paper: Commander Examples[/url] #3.

    When you use trigger file as CSV data for BarTender, don't delete trigger file at detection - select rename.
    delete file after print by /DD command.

    [b]I would take Commander[/b] as that would need less coding and more flexible.
    or ask the customer to select formats manually :rolleyes:
    0
  • Avatar
    Legacy Poster
    [quote name='Shotaro I -Seagull Support' timestamp='1327643752' post='1590']
    Hi Labelguy,

    As of BarTender 9.4, BarTender format's VB Script is not able to select which format to print - as VB Script is inside of label format.
    What you can do is modify existing objects on current format.
    See some ability of BarTender Automation Edition's Object Automation by VB script.
    [url="http://seagullscientific.invisionzone.com/index.php?/topic/213-how-to-change-object-properties/"]How To Change Object Properties?[/url]

    To dynamically select label format from application, you can use Commander.
    Unfortunately Commander / BarTender cannot decide which format to print in CSV data, so what you can do is..

    a. Use multiple tasks with BarTender command.
    Task A detects "FMTA*.csv" file and print "formatA.btw"
    Task B detects "FMTB*.csv" file and print "formatB.btw"
    ...etc
    See [url="http://s3.amazonaws.com/SeagullBarTender/ftp/WhitePapers/WhitePaper_CommanderExamples_English.pdf"]White paper: Commander Examples[/url] #2.

    b. Use commander script.
    at the top of CSV file, you need to add commander script like below.
    [code]%BTW% /AF="C:\bt\formatA.btw" /PRN="MY Printer" /D="%Trigger File Name%" /R=3 /P /DD
    %END%
    "PRODUCTID","PRODUCTNAME","QTY"
    "PD-001","Blood Diamond","750"
    "PD-017","Shutter Island","2140"
    [/code]
    Task Command type is just "Commander Script".

    See [url="http://s3.amazonaws.com/SeagullBarTender/ftp/WhitePapers/WhitePaper_CommanderExamples_English.pdf"]White paper: Commander Examples[/url] #3.

    When you use trigger file as CSV data for BarTender, don't delete trigger file at detection - select rename.
    delete file after print by /DD command.

    [b]I would take Commander[/b] as that would need less coding and more flexible.
    or ask the customer to select formats manually :rolleyes:
    [/quote]
    0
  • Avatar
    Legacy Poster
    [quote name='Shotaro I -Seagull Support' timestamp='1327643752' post='1590']
    Hi Labelguy,

    As of BarTender 9.4, BarTender format's VB Script is not able to select which format to print - as VB Script is inside of label format.
    What you can do is modify existing objects on current format.
    See some ability of BarTender Automation Edition's Object Automation by VB script.
    [url="http://seagullscientific.invisionzone.com/index.php?/topic/213-how-to-change-object-properties/"]How To Change Object Properties?[/url]

    To dynamically select label format from application, you can use Commander.
    Unfortunately Commander / BarTender cannot decide which format to print in CSV data, so what you can do is..

    a. Use multiple tasks with BarTender command.
    Task A detects "FMTA*.csv" file and print "formatA.btw"
    Task B detects "FMTB*.csv" file and print "formatB.btw"
    ...etc
    See [url="http://s3.amazonaws.com/SeagullBarTender/ftp/WhitePapers/WhitePaper_CommanderExamples_English.pdf"]White paper: Commander Examples[/url] #2.

    b. Use commander script.
    at the top of CSV file, you need to add commander script like below.
    [code]%BTW% /AF="C:\bt\formatA.btw" /PRN="MY Printer" /D="%Trigger File Name%" /R=3 /P /DD
    %END%
    "PRODUCTID","PRODUCTNAME","QTY"
    "PD-001","Blood Diamond","750"
    "PD-017","Shutter Island","2140"
    [/code]
    Task Command type is just "Commander Script".

    See [url="http://s3.amazonaws.com/SeagullBarTender/ftp/WhitePapers/WhitePaper_CommanderExamples_English.pdf"]White paper: Commander Examples[/url] #3.

    When you use trigger file as CSV data for BarTender, don't delete trigger file at detection - select rename.
    delete file after print by /DD command.

    [b]I would take Commander[/b] as that would need less coding and more flexible.
    or ask the customer to select formats manually :rolleyes:
    [/quote]



    Thank you Shotaro. I think I messed up on the reply. I started looking into Batchmaker. Maybe that might be the better choice?

    Labelguy
    0
  • Avatar
    Legacy Poster
    The really simple solution is using Print Station: It will display all label formats in a specific folder, and the customer can simply click one of the five to select it.

    As far as using VB, the formats would have to be similar enough that they can be modified all within one .btw to give the appropriate output. It's not impossible, as I have programmed "Alternating labels" all from within one .btw file. But it really depends on the specifics.
    0

Vous devez vous connecter pour laisser un commentaire.