使用JavaScript在ASP.net中打印页面 [英] Print pages in ASP.net using JavaScript

查看:100
本文介绍了使用JavaScript在ASP.net中打印页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



i有一个500行的文本文件,我需要在asp.net中调用该文件,每页打印100行总共5页我需要打印使用javascript可以任何人帮助我...提前感谢



注意:我有一个代码用于导入文本文件并读入字符串,我需要代码用于打印选项with allignment&100lines perpage



所以我需要在打印之前看到打印预览

Hi All,

i had a textfile which is 500lines, i need to call that file in asp.net and print 100lines per page total 5pages i need to print using javascript can any one helps me... thanks in advance

Note: i had a code for import the textfile and read in string, i need code for print option with allignment & 100lines perpage

so i need to see the print preview before print

推荐答案

解决方案我给你的不是你的格式。您可以自己创建。

请参阅这些链接在ASP.NET中动态创建打印预览页面

在ASP.NET中打印网页的特定部分

这些不是完全解决方案您必须做一些更改才能使其按照您的要求工作
The solution I am giving you is not in your format. You have you to create for your own.
see these Links Creating print preview page dynamically in ASP.NET
and Print a specific part of webpage in ASP.NET
these are not Exactly Solution of Your you have to do some changes to make it work according to your requirement


这篇关于使用JavaScript在ASP.net中打印页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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