How to set margins 0 on print preview?

前端 未结 5 858
花落未央
花落未央 2021-02-01 19:04

Where am i doing wrong?

This is the normal print preview:

5条回答
  •  日久生厌
    2021-02-01 19:36

    I don't think it is actually possible to do this, because you'd be overruling the defaults on the user's computer. As far as I know, a web application doesn't have the access rights to alter something like printer settings without some kind of ActiveX script in IE.

    I had a similar problem a while back, and ended up having to generate a PDF on the fly using TCPDF. In the end that worked out better, because you have greater control over the layout.

提交回复
热议问题