問(wèn)題:
Bartender軟件中如何插入計(jì)算公式?
我的標(biāo)簽里有一個(gè)凈重,毛重,和米長(zhǎng)。毛重是凈重+0.5,米長(zhǎng)是凈重*3.5,我如何設(shè)置只要輸入凈重,米長(zhǎng)和毛重就會(huì)自己跳出來(lái)呢?
敏用數(shù)碼解答:
Bartender中設(shè)置這個(gè)功能還是比較容易的。
由于Bartender版本不同,設(shè)置方法略有差別,現(xiàn)以Bartender10來(lái)進(jìn)行說(shuō)明:
1、首先設(shè)置凈重?cái)?shù)據(jù)為全局變量用于共享。
定義和使用全局變量方法如下:
①Add a new text object to the template.
②Double-click on the text object to open the Text Properties dialog. Alternatively, select Properties from the object's context menu.
③Select the object from the list of available properties pages to display the Selected Object property page.
④Enable the option Do Not Print Object.
⑤Select the desired data source from the Navigation Pane.
⑥Select the Data Source tab on the Data Source property page.
⑦Next to the Name field, click the icon to open the Change Data Source Name Wizard.
⑧In the Name field, enter the desired name by which you wish to refer to the selected data source.
⑨Click OK to apply the name change and close the Change Data Source Name Wizard.
⑩On the Data Source property page, replace "Sample Text" with the value to which you would like to initialize your variable.
2、標(biāo)簽格式上的凈重,米長(zhǎng)和毛重的數(shù)據(jù)源選擇為Visual Basic腳本,并分別賦值為:
Value =SS
Value =SS*3.5
Value =SS+0.5
SS為全局共享數(shù)據(jù)的名稱。
3、通過(guò)這樣的設(shè)置后,實(shí)際打印時(shí)只需要輸入凈重?cái)?shù)據(jù),其他數(shù)據(jù)會(huì)自動(dòng)生成。