Table of Contents

Custom Print Layouts

Custom print layouts provides a means to print virtually anything on any printer through Logtrade Integrated Printer in any Logtrade license. Authentication to Logtrade is done by an API-key.

The API-key refers to a license, or a license in combination with a print queue. To get an API key you must contact support@logtrade.se.

Tip

When printing to your own Logtrade license you should use an API key that is generic for the license. That way the printer to print on can be controlled from Business Central by the print queue name. When printing to other Logtrade licenses you need to get the API key from the holder of that license and that API key must include the print queue since you are not aware of which print queues that are available in that license.



Custom print layout card


FastTabs

General



Field name Description
Code The code of the layout.
Description The description of the layout.
Table No. The table number the layout is based on. The layout is used by passing a RecordID of the specified table number to the Print function, which will run the specified codeunit that defines the layout passing the record of the RecordID.
Table Name The name of the table that the layout is based on.

Destination



Field name Description
API Key The API key that is used to authenticate against Logtrade. The API key includes the license number, but can also include the name of the print queue (making it possible to print to other Logtrade licenses without access to username, password or print queue names in that license. Please see information in the top of this page.
Print Queue The name of the print queue this layout always shall be printed on. If left blank it will be printed based on the user settings (or inherit the print queue from the consignment if printed based on a rule triggered by consignment prepare or release).
Print Format The print format that is sent to Logtrade Integrated Printer that will tell which printer/tray the layout shall use.

Layout



Field name Description
Codeunit No. The number of the codeunit that specifies the layout. The codeunit shall accept the specified table number as a parameter for Codeunit.Run(CodeunitNo, Rec)
Codeunit Name The name of the codeunit.
Orientation Specifies the orientation.
Page Height Specifies the height.
Page Width Specifies the width.
Top Margin Specifies the top margin.
Left Margin Specifies the left margin.
No. of copies Specifies the number of copies to print.