< Day Day Up > |
The print function lets the user print code from Code view. dreamweaver.printCode()Availability Dreamweaver MX. Description In Windows, this function prints all or selected portions of code from the Code view. On the Macintosh, it prints all code or a page range of code. Arguments showPrintDialog, document
Returns A Boolean value: true if the code can print; false otherwise. Example The following example calls dw.PrintCode() to invoke the Print dialog box for the user's document. If the function returns the value false, the code displays an alert to inform the user that it cannot execute the print request. var theDOM = dreamweaver.getDocumentDOM("document"); if(!dreamweaver.PrintCode(true, theDOM)) { alert("Unable to execute your print request!"); } |
< Day Day Up > |