PrintLayout()
Summary
Prints all or part of a layout window.
Changes
Draft parameter added to Version 2012.
>Syntax
PrintLayout(integer start_page, integer end_page [, draft])
| Argument | Contents |
|---|---|
| start_page | The first page to be printed |
| end_page | The final page to be printed |
| draft | If "True" do not convert the map to a bitmap; the default is "False" |
Notes
-
The parameter draft is an optional argument.
-
PrintLayout() always prints the current layout window.
-
Use GetLayoutPages() to determine the number of pages in the layout.
-
A draft parameter of "True" lets the printer render various drawing elements the best it can. This may not always match what appears on your screen. For instance, many printers have problems rendering correctly transparent area fills or the halo effects on text.
-
When the draft parameter is "False," Maptitude renders the contents into a bitmap and feeds the image to the printer. This can be significantly slower than printing in Draft mode, but it produces much more consistent details on many hard-to-render features.
Example
PrintLayout(1, 4)
Error Codes
| Error Type | Meaning |
|---|---|
| Escape | User cancelled the print job |
| Error | There is no current layout window |
See Also
| Function | Summary |
|---|---|
| PrintFigure() | Prints a figure as shown in the figure window |
| PrintMap() | Prints a map as shown in the map window |
| PrintEditor() | Prints all or part of an editor window |
| GetLayoutPages() | Gets the number of printed pages in a layout |