Skip to main content

Patterns (Multiple Pages) - Knowledgebase / Lasernet / Lasernet Training / Lasernet Form Editor 9 - Designing Forms - Formpipe Support Portal

Patterns (Multiple Pages)

Authors list


Each sheet has a First, Middle, Last and Single page for formatting the output. These pages can contain overlays providing the graphical presentation of the print, rearranges representing the actual printed data, fixed texts and scripts.

If your print job can be printed on one page only, the Single Page design is then used.

If your print job spans more than one page, you can use a First, Middle and Last Page to design your final output document.

In other words, you have a full flexibility in designing your output pages, and you no longer have to print pages with very little content.

Exercise

Download and import the attached configuration called 16. Patterns (Multiple Pages) in Lasernet Developer 9. Afterwards, go to the Forms section and open the Sample form.

1. Select another grab file that contains enough item lines to make it necessary to use more than one page. On the Menu bar, click Form, and then click Select Grab File.

2. With the dialog displayed, select the Sample (Multiple Pages).xml file.

3. Click the Open button.

The grab file you have opened contains more item lines compared to the previous grab file. If item lines do not fit a single page, you can select First Page and then Last Page to view all the item lines.

Now let's define more suitable settings in the Conditional Area for the form design.

4. On the Menu bar, click Sheet, and then click Conditional Area.

5. With the Conditional Area dialog displayed, click the Edit button.


6. Set Start Y and End Y positions for First, Middle, Last and Single pages as illustrated on the picture below. Set Start Y to 110 mm and End Y to 280 mm for First and Middle pages as well as Start Y to 110 mm and End Y to 265 mm for the Last page.

7. Once you are done, accept changes by click Ok on both dialogs.

After you have defined new values in the Conditional Area for Start Y and End Y, the item lines also appear on the Middle Page(s).

8. Right-click in the output view and select Overlay Files in the context menu that appears to open the Overlay Files tab in the Sheet Options dialog.

9. Select the First, Middle, Last and Single check boxes for the Letterhead.pub.lnemf and Copy.pub.lnemf overlays. Afterwards, select the Last and Single check boxes for the Box with footer.pub.lnemf overlay.

10. Another overlay with boxes included is needed. It is to be without a footer for the First and Middle pages. Click the Add button to add such an overlay.

11. Select the Box without footer.oub.lnemf overlay from the list.

12. Select the First and Middle check boxes under On page.

13. Click Ok to accept changes for adding an overlay.

14. Afterwards, click Ok on the Sheet Options dialog.

You have now added overlays for the First, Middle, Last and Single pages.

And now, you can assign the required rearranges and add them to the Single Page, the First Page, the Middle Page and the Last Page. To this end, follow the steps listed below.

15. Switch to the Single Page tab.

16. Open the properties of the rearrange containing the Sparrow Wholesales rearrange text. Select the First, Middle, Last and Single check boxes in the Absolute group box.

17. Click Ok to accept the changes.

You have now added the rearrange to all the pages.

Let’s do the same for the rest of rearranges. To this end, follow the steps listed below.

18. Switch to the Single Page tab and.

19. Select all rearranges in the header by holding down Shift and clicking the required rearranges, or you can draw a rectangle around the rearranges using the Select tool

20. Right-click one of the selected rearrange, select Absolute and then click All in the context menu that appears.

21. Select both rearranges in the footer of the document. Right-click one of them, select Absolute and then click Last in the context menu that appears.

The Total label as well as the total amount appear only on the Single and Last pages.

22. In the header, you can view the page number and how many pages are in the final document. To this end, a script is inserted. The number of pages is calculated by using the Start Y and End Y positions in any of the Conditional Areas and the total progress for all the patterns.

23. On the Menu bar, click View and then click Run JavaScript, or press Shift+F5 to show the script result.

24. You can show the page number for each page by switching to the First, Middle and Last tabs respectively.

25. The script visualizes the result of a page calculation which corresponds to the selected page.

26. In the Edit Rearrange dialog, you can edit the Page format if Type of insert text is set to Page x of y. %1 stands for for the current page number. %2 stands for the total number of pages. The parameters can be combined with a static text.

Helpful Unhelpful

Add a comment

Please log in or register to submit a comment.

Need a password reminder?

Share