Analysis of IE6.0 Print Mechanism

zhaozj2021-02-16  32

Page printing, can be implemented through the "Print" function of the browser, but the "print template" mechanism is IE 5.5 / 6.0 and Netscape 6.0 unique; accurate, IE 5.5 is just a mechanism prototype, in IE 6.0 It is fully embodied. The print function module of IE 6.0 is more complete in the unity of precise control of page boundaries, text intervals, and printing. By creating a print template, you can accurately control: page style and contents of web pages and previews; print properties, such as automatic pages that are automatically printed, or numbers; precisely control the various elements and variables of the print preview interface. By printing templates, you can: Automatically add fixed content for all print pages, such as company identity, copyright declaration, or designated ads; custom page headers and tailings, such as page numbers or volumes; specify print history and tasks; Sketch parity page mapping printing ... The print template mechanism is based on the dynamic HTML language, involving the main two behaviors: DeviceRect, LayoutRect, below, we will discuss the printer of IE 6.0 on these two behaviors system. It is also necessary to explain that the behavior of DHTML (Dynamic Hypertext Identity) is the same as "behavior" in other languages, is an application programming interface. In the initial state, it has its own default attribute, under certain events, by the user Decide to call its acknowledgment, resulting in a corresponding "behavior". Moreover, "behavior" can be written ourselves, but it is ".htc" to extension for its extension. One. DeviceRect, definition print overall style: Print overall style, including fixed content such as company identity (not necessarily, only in printing paper or preview page,); printing page Color style; Print the edge properties or pattern of the page; Before performing the DeviceRect reference, first determine the page style, and the method is set with