問(wèn)題:
Bartender軟件中如何插入計算公式?
我的標簽里有一個(gè)凈重,毛重,和米長(cháng)。毛重是凈重+0.5,米長(cháng)是凈重*3.5,我如何設置只要輸入凈重,米長(cháng)和毛重就會(huì )自己跳出來(lái)呢?
敏用數碼解答:
Bartender中設置這個(gè)功能還是比較容易的。
由于Bartender版本不同,設置方法略有差別,現以Bartender10來(lái)進(jìn)行說(shuō)明:
1、首先設置凈重數據為全局變量用于共享。
定義和使用全局變量方法如下:
①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、標簽格式上的凈重,米長(cháng)和毛重的數據源選擇為Visual Basic腳本,并分別賦值為:
Value =SS
Value =SS*3.5
Value =SS+0.5
SS為全局共享數據的名稱(chēng)。
3、通過(guò)這樣的設置后,實(shí)際打印時(shí)只需要輸入凈重數據,其他數據會(huì )自動(dòng)生成。