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