Reports can be modified to hide addresses from printing when the Blind Ship Smart Field box is checked.
Blind Ship Field:
Note: The Blind Ship Field setting must first be enabled in Modules > Settings.
In this example, the report shown will be modified with a script to change the highlighted address so that if the order is blind shipped, this address will not appear on the printed report:
Procedure:
- Open a document
- Make sure the Blind Ship box is checked
- Click Print
- Select the report that should be modified and click Properties
- Click Design to open the Report Designer
- On the Report Designer window, highlight the section containing the top address to be hidden
- In the Property Grid, expand the Scripts section, highlight Before Print and click the ellipsis (...):
- The Script Editor will open. Add the following script and click OK:
if (Convert.ToString(GetCurrentColumnValue(“xblindship”)) == “True”)
{
xrLabel10.Visible = false;
}
}
Note: The example script can be modified to reflect your setup. In the example, xblindship is the smart field that was configured in SalesPad and xrLabel10 is the label on the report that will be modified based on whether or not the order needs to be blind shipped. - Save your changes and close the Report Designer
- On the Report Properties screen, click OK
Now you can print the report. Since Blind Ship was checked, the address will not print, and will not print on the selected report whenever Blind Ship is checked. You can repeat the process for additional reports.
SalesPad Support
Comments