网页印刷 [英] Webprinting

查看:64
本文介绍了网页印刷的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我一直在搜寻,而我得到的每个答案都不是. X |
为什么使用WScript.Shell使用activex可以编辑笔名条目,但不能将打印机方向设置为横向?

Hi ,
Ive been searching and searching , and every answer i get is no. X|
Why is it that with activex using the WScript.Shell you can edit regitry entries , but you cant set the printer orientation to landscape???

推荐答案

因为您应该使用css以指定此内容,在html头部分中放置以下内容:


Because you should use css to specify this, put something like this in the html head section:


<style type="text/css">
@page
{
    size: landscape;
    margin: 2cm;
}
</style>

<style type="text/css" media="print">
@page
{
    size: landscape;
    margin: 2cm;
}
</style>


我通过创建打印模板并通过activex使用它来解决此问题,仅在Internet Explorer中有效
i solved this by creating a print template and using it via activex, this only works in internet explorer


这篇关于网页印刷的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆