Add Individual Price Levels to Merchandise Tags
This guide provides a step-by-step process for adding price levels to merchandise tags within Document Designer. The example used in this guide will show how to add two different price levels to the standard "Normal Basic" tag design.
In the example below, there are four price levels. We will add the MSRP ($50.00) and STORE ($52.00) price levels to the tag.
Step 1: Launch Document Designer
- Launch DocumentDesigner.exe and fill in the required fields: Server Name, Username, and Password.
- Click OK to authenticate.
- Once authenticated, select Merchandise Tags from the Area drop-down, and choose Normal Basic from the Document drop-down.
- Click the Edit button to modify the document.
- Once in the editor, go to File > Save As and save the file under a new name. Document Designer does not allow direct editing of default designs.
Step 2: Add DetailData and Footer Bands
- Add both a DetailData and Footer band to the design beneath the MasterData band. To do this, locate the Insert Band option on the toolbar.
- When prompted for the dataset while adding the DetailData band, choose the invnprice dataset. This allows the use of both the inventory and invnprice datasets.
Once both bands are added, expand the Footer band and drag the content from the MasterData band into the Footer band. Your design should look similar to the image below.
Step 3: Add Text Objects for Price Levels
1. Remove the inventoryACTSTRPRICE field from the design.
2. Add two blank text objects to represent the MSRP and STORE price levels.
3. You can locate the Text Object option on the toolbar.
4. Once added, the design should resemble the example below.
Step 4: Add Code for Price Levels
1. Click the Code tab located at the top left of the page to access the Code page.
2. Paste the following C++ code into the code section and save the design:
string MSRP_Price = "", Store_Price = "";
void DetailData1OnBeforePrint(TfrxComponent Sender) {
if (
MSRP_Price = FormatPrice(
if (
Store_Price = FormatPrice(
}
void Footer1OnBeforePrint(TfrxComponent Sender) {
Memo1.memo.text = MSRP_Price;
Memo2.memo.text = Store_Price;
}
Step 5: Assign Code to Events
- Assign the function headers from the code page to the DetailData and Footer events (specifically, the OnBeforePrint event).
- To do this:
- Click the DetailData band so that it is highlighted.
- Go to the Events tab and locate the OnBeforePrint event.
- Paste in DetailData1OnBeforePrint as the function.
- Repeat these steps for the Footer band, using the Footer1OnBeforePrint function header.
Refer to the images below for the expected result. Be sure to save your changes.
Step 6: Test the Design
- To test the tag design, go to Prism and locate an inventory item.
- Print a tag using the newly created design. Both the MSRP and STORE price levels should appear on the tag.
- If you notice abnormal spacing between the two prices, return to Document Designer and adjust the position of the text objects (Memo1 & Memo2) until the layout is correct.
The final product should display both MSRP and STORE price levels on the tag, as shown in the image below.