使用java-script从报表中的文本框中打印值 [英] print values from text boxes in report using java-script

查看:201
本文介绍了使用java-script从报表中的文本框中打印值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎么能

使用java-script从报表中的文本框打印值



i想打印必须用户输入的现金收款它的价值

as

名称:

年龄:

地址:

金额:

产品:

价格:



用户输入数据或值后,必须点击打印按钮然后必须看报告表格

打印它



感谢您的建议

how i can
print values from text boxes in report using java-script

i want to print cash receive that must user enter its values
as
Name :
Age:
Address :
The Amount :
Products :
Price :

After the user enter his data or values , he must click print button then must see report form
to print it

thanks for advice

推荐答案

为此你可以使用javascript函数 window.print()。有关更多信息,请查看下面提到的链接:



如果你需要打印特定内容,您可以通过CSS隐藏其余内容(并格式化打印区域):



For that you can use javascript function window.print().For more info check below mentioned links:

If you need to print an specific content, you can hide the rest (and format the printed area) by CSS:

<style media="screen">
  .noPrint{ display: block; }
  .yesPrint{ display: block !important; }
</style> 
<style media="print">
  .noPrint{ display: none; }
  .yesPrint{ display: block !important; }
</style>







欲了解更多信息:使用javascript自动打印



窗口打印()方法



jQuery使用JavaScript在JavaScript中使用jQuery打印插件打印DIV内容


这篇关于使用java-script从报表中的文本框中打印值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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