简体   繁体   中英

Printing a form

我可以在表单中有一个显示打印对话框的按钮,以便用户可以打印该表单吗?

我认为Microsoft提供的这个示例可能会对您有所帮助。

Attach this to your button:

onclick="javascript:window.print()"

Not ideally semantic, but it works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM