With regard to the usage of printing components, you are listed below:
WebBrowser.execwb (1, 1) open
Web.execwb (2, 1) Close all IE windows now and open a new window
Web.execwb (4, 1) Save the page
Web.execwb (6,1) print
Web.execwb (7,1) print preview
Web.execwb (8, 1) Print page settings
Web.execwb (10, 1) View page properties
Web.execwb (15, 1) seems to be revoked, to be confirmed
Web.execwb (17, 1)
Web.execwb (22, 1) refresh
Web.execwb (45, 1) Close Form No prompt
Code demo
(1)
Object>
(2)
Function printsetup () {
// Print page settings
Wb.execwb (8, 1);
}
Function printpreview () {
// Print page preview
Wb.execwb (7, 1);
}
Function printit () {if (confirm ('sure print?')) {wb.execwb (6,6)}} script> head>