You are here:
Generate a Print Preview
Review how your report appears when printed as a PDF document.
Required Editions
| Available in Lightning Experience in Enterprise and Unlimited Editions that have Consumer Goods Cloud enabled. |
| User Permissions Needed | |
|---|---|
| To create a generate preview | Customizer, Admin |
Prerequisites:
- The current folder is a valid workspace.
- A successful build was run.
- The Modeler server started successfully.
For example, to see how the PDF print of an order report would appear, perform the following steps to generate a preview of data to be printed.
- At the command prompt or in a Terminal window, change the directory to your workspace.
-
Build the workspace. Run:
sf modeler workspace build. -
Start the server. Run:
sf modeler workspace server start. -
Open the URL http://localhost:3000/framework/index.html?desktop in a Google Chrome browser in incognito mode to view
the Consumer Goods Cloud offline mobile app in a simulator app UI when generating the
print preview for the first time. The system performs the initial data synchronization
before rendering the simulated UI.
For subsequent tests, use the URL http://localhost:3000/framework/index.html?desktop&forceOffline in Google Chrome in incognito mode if the customizations in a PrintLayout contract requires you to generate the print preview multiple times until you get the expected output.
- In the simulated app, go to Order | Order Overview, and open an order.
-
To open the menu, click
, and then click
.
-
Click Preview.
The PDF preview of the Order Confirmation report appears.
- Usecase: Modify an Order Report and Generate PDF Preview
Modify the alignment settings in the order report to center align the cell data under the Qty, Unit Price, amount, and Total columns, and verify the changes in the PDF preview.
Did this article solve your issue?
Let us know so we can improve!

