| Next | Contents |
psPrint when called from the viewer, retied (then untied) the spool file. Attempting to move to another page AFTER printing would cause a FILE TIE error. Now only ties/unties the spool file if called stand-alone.
psPrintSetup available from right-mouse menu to call the standard printer setup dialogue. Will affect the currently chosen printer only, and any changes will be cancelled if a new printer is selected from the drop-list in the viewer.
ps_printers workaround for +Win 3.5 problem under NT4 removed. You can easily re-instate this if required, as the work-around code has been left in the function in an :If 0 block. The printer list should now be correct on all systems.
Printer support two new functions to control NewLeaf printing. These allow you to set up a selected printer, set any particular properties and then run psPrint or psPrintSetup from your application.
('copies' 2) psOpenPrinter '' © Default printer wasopenpsClosePrinter
If you opened the printer explicitly, it will be left open by psPrint so you will probably want to close it again.
Page references support added for XML-style tag to resolve references to bookmarks as page numbers. Text such as <pageref "FIRST" /> will be replaced when the report is complete with the actual page number. The bookmark may well not exist at the point it is referenced (typically in a table of contents), but it should have been defined by the time the report is closed or spooled. If not, the string ERR will show instead of a page number. A special bookmark is NUMPAGES which will be replaced by the number of pages in a report. This may be represented on the master-page by &n so a typical footer could read Page &p of &n here. Example function PageRef is the basic testbed here.
Note that the bookmark is case-sensitive. You can omit the quotes unless it contains blanks, but you MUST end the tag with / here in XML style.
Table footers if a table came exactly to the bottom of the page, it could (very rarely) fail in looking for a location for the footer, even if the footer was not set. Now only looks when there is a footer, which would have forced a page-break further back if present, and avoided the problem.