简体   繁体   中英

Custom Print Preview — Design Choice

I need to implement a custom print preview screen for one of the pages in my MVC web project. I was just wondering what some of the recommended ways of doing it are. Basically, we have a dropdown menu with a bunch of different options-- each one displays a different statistical report under the dropdown menu. For the print preview, I only want to preview the report, not the whole page.

Should I simply take the html and cut off the stuff I don't want, and re-render it? Or create some kind of other document, XPS maybe, and display it as that? Alternate CSS maybe?

并不是每个人都可能感兴趣,但是我最终只是使用原始页面中的HTML并禁用/重新设置所有链接和内容,然后通过javascript隐藏了不必要的元素。

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