简体   繁体   中英

How to save a aspx page content type in server side in the form of HTML page and print this HTML from client side

I have a Table with header and footer but it does not support browser compatability.

So, I want to save this table in the form of HTML in server side and print it in client side with out print preview but headers and footers must be there.

There is no legitimate way to bypass the print dialog and immediately output to a printer. I've heard of hacks in the past, but hopefully those security holes have long since been closed. Can you imagine if every malicious website you stumbled across could print the bible to your home printer?

Use CSS to create a printer-friendly layout of the table and page, and use javascript window.print(); to bring up the user's print dialog so they can choose to print or not.

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