Java脚本中Window.print中的问题 [英] Issue in Window.print in Java Script

查看:135
本文介绍了Java脚本中Window.print中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用HTML报告查看数据.我在JavaScript中使用window.print()函数来打印该报告.当我单击打印"按钮时,它将报告保存为PDF,默认名称是站点的URL.
我想设置该PDF文件的自定义名称
请帮忙.
嘘Saad

Hi,
I am using HTML Report to View Data.I use window.print() function in JavaScript to Print that Report. When I Click the Print Button it Save the Report in PDF the Defalt Name is URL of site.
I want to set the Customize Name of that PDF File
Please Help.
Sh. Saad

推荐答案


JavaScript中的Window.print()只是将打印命令发送到默认打印机.
您无法在此处控制打印机的行为.
您需要检查打印机设置,以获取每个打印命令的自定义名称选项.
Hi
Window.print() in JavaScript simply sends print command to default printer.
You cannot control the printer behavior here.
You need to check your printer settings, for option of custom names for each print command.


这篇关于Java脚本中Window.print中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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