Android users often see the full content on their devices, but sometimes it is not possible to completely display some information on a single screen. be able to print information from your Android app to users to see larger content from your app or
Starting with JDK 6, Java is already bundled with the JavaScript engine, which is based on Mozilla's rhino. This feature allows developers to embed JavaScript code in Java and even call Java from embedded JavaScript. In addition, it provides the
This article mainly introduces how to print, print, preview, and print settings in JavaScript. For more information, see WebBrowser, which is a built-in browser control of IE. You do not need to download it.
I. WebBrowser Control
Ii. WebBrowder
This article mainly introduces how to print, print, preview, and print settings in JavaScript. For more information, see WebBrowser, which is a built-in browser control of IE. you do not need to download it.
I. WebBrowser control
II. WebBrowder
Starting with JDK 6, Java is already bundled with the JavaScript engine, which is based on Mozilla's rhino. This feature allows developers to embed JavaScript code in Java and even call Java from embedded JavaScript. In addition, it provides the
WebBrowser is an IE built-in browser control that requires no user download. One, WebBrowser control Webbrowder Control method//PrintWEBBROWSER1.EXECWB (6,1);Print settingsWEBBROWSER1.EXECWB (8,1);Print PreviewWEBBROWSER1.EXECWB (7,1); There are
Objective
All the code in this article is written in JavaScript, but you can also use a scripting language that is compatible with JSR 223. These examples can be used as script files or as a way to run a single statement in an interactive Shell.
Copy codeThe Code is as follows: javascript printing-print page settings-print preview Code Classid = CLSID: 8856F961-340A-11D0-A96B-00C04FD705A2 name = wb> Javascript print Overview(1)Copy codeThe Code is as follows: (2)Copy codeThe Code is as
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.