Layout Parameter Scripting Access Follow

0
Avatar
Legacy Poster

I have a vbscript that imports values from a csv file.

 

I would like to configure the label layout parameters based off of that csv file where values would dictate the height, width, shape, etc. of the label.

 

How can I get at the layout parameters in the Page Setup dialog box using vbscript or is there another method?

5 comments

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

You can open BarTender's Help (press F1 key within BarTender) and now visit the "Visual Basic Scripting > Scripting Objects > Object Reference > Page Setup Object" object and check all the available properties (some of them are just read only).

 

In order to make use of this VBScript "Scripting Objects", you will need to use VBScript at BarTender's document level, which can be accessed via the "File > BarTender Documents Options > VBScripting" tab. The following White Paper also explains how to use these Scripting Objects within BarTender: http://www.bartenderbarcodesoftware.com/label-software/whitepapers/Dynamically-Changing-Objects-At-Print-Time-Using-VB-Script.pdf

0
Avatar
Legacy Poster
Comment actions Permalink

You can open BarTender's Help (press F1 key within BarTender) and now visit the "Visual Basic Scripting > Scripting Objects > Object Reference > Page Setup Object" object and check all the available properties (some of them are just read only).

 

In order to make use of this VBScript "Scripting Objects", you will need to use VBScript at BarTender's document level, which can be accessed via the "File > BarTender Documents Options > VBScripting" tab. The following White Paper also explains how to use these Scripting Objects within BarTender: http://www.bartenderbarcodesoftware.com/label-software/whitepapers/Dynamically-Changing-Objects-At-Print-Time-Using-VB-Script.pdf

 

Thanks for the properties location.  Unfortunately, "some" are not Read-only, they are all Read-only and therefore, there is no way to control the page properties using scripting.

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

You're correct, my mistake. This was a consequence of a small mislead in BarTender's Help, which guides you to the same property, but for the ActiveX interface. I will get this reported.

0
Avatar
Legacy Poster
Comment actions Permalink

I am coming back to this topic after thinking about it for a while.  I am still needing to know which properties are able to be modified through scripting.  I am using ver 10.0.  I have been successful with reading in a text file.  I can modify the following:

  Format.Objects(arrServiceList(j)).X = arrServiceList(j+1)
  Format.Objects(arrServiceList(j)).Y = arrServiceList(j+2)
  Format.Objects(arrServiceList(j)).FontSize = arrServiceList(j+3)
  Format.Objects(arrServiceList(j)).FontName = arrServiceList(j+4)

 

The arrServiceList is an array that I step through.

 

So the parameters of the object so far are X, Y, FontSize, FontName.

 

I would like to modify the Alignment, but I can't seem to find that parameter.

 

Is there a list of parameters I can modify?

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

What are you refering to exactly when you say alignment? Do you mean the alignment for a paragraph text object, the alignment for the human readable part shown below or above the bar code, the alignment of AutoSized text?

Please sign in to leave a comment.