dpblwmh5218 2012-11-23 15:22
浏览 21

从我的网站打印内容的最佳方式[关闭]

My website is an intranet for an enterprise, The site contains data about clients, pricing etc stored in a MySQL database but this is not the point.

The site needs to be able to generate bills using the different data like the clients name, address etc ...

The question is simple, which way should I use to generate these pages? I tried to generate a html page but the printing is too much related to the browser, some keep things some don't and I don't like this.

should I generate pdf pages instead and how? thanks you for your answers

EDIT: the site is build using PhP and Javascript

The page need to contain a huge amont of data and therefore can't be handled with html printing

  • 写回答

6条回答 默认 最新

  • dongyu4554 2012-11-23 15:24
    关注

    You should indeed generate pdf's. Printing html is quirky at best and you have no foolproof way to ie. make page breaks or force landscape printing.

    You can ofcourse us a custom print only css, but that is still very limited.

    Also alot of browsers will allways print a tekst on the header and footer on each page, unless the end user disables that specific option.

    PDF is the only decent way to go to provide printing.

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度