4D v13.4Printing records |
|||||||||||||||||
|
4D v13.4
Printing records
Printing records
You can print the records of your tables at any time. The records are printed via database forms. In the Application environment, printing records is usually be handled by buttons or custom menus. The records are printed using dedicated forms. The commands of the Printing theme can be used to set up custom printing processes. In the Design environment, 4D lets you print one or more records and choose the form to be used. You can print a list of records (a report) or records in page mode. 4D prints the records in the current selection. Set the current selection to the subset of records you want to print. If you want the report to list the records in a particular order, sort the current selection before printing the report. If you want to print a single record in page mode, double-click it to open it. To print records:
When a page of the report is being previewed, you can do the following:
If you did not check the Print preview check box, the report will be sent to the printer immediately. Since version 13, 4D generates print previews as XPS documents. The XPS (XML Paper Specification) format is an open specification for a page description language that was initially developed by Microsoft and then standardized by Ecma International. Now widespread among Windows applications, it provides an accurate on-screen representation of printed documents and is independent from the hardware configuration. To generate XPS preview documents, 4D calls an XPS driver. This driver is integrated into Windows starting with Windows Vista but you can also get it under Windows XP by installing the .NET framework. The preview takes place in an XPS driver that is available natively or using Internet Explorer, depending on your version of Windows. The table below summarizes the availability of the XPS driver and viewer for the different Windows versions:
(*) The viewer is also available separately. In 4D, XPS preview is used for:
When a print preview is generated, 4D redirects printing to a temporary XPS file and launches the application associated with .XPS files. Note: If this application is not the XPS viewer (as is the case, for example, with Google Chrome), 4D forces Internet Explorer to run. Temporary XPS files are saved in the local user folder: ...:\Users\{UserName}\AppData\Local\Temp\4D\PrintPreview\FolderNumber\NumUUID\ To avoid overloading this folder, only the last 100 XPS documents are kept. If the user does not have appropriate access rights, the -9799 error is returned. Note that Windows may empty the "Temp" folder on startup. Two commands improve control over the preview option: Get print preview and Is in print preview). |
PROPERTIES
Product: 4D SEE ALSO
Creating labels |
|||||||||||||||