如何在Asp.net中打印大量文档? [英] how to print ahuge number of documents in Asp.net?

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

问题描述

我有一个搜索页面。我的结果显示在gridview中,并且有一个名为print all的按钮

i写一个循环以从网格视图获取所有文档(图像)路径并打印所有但是当结果数量大约是20000且我的网站上面被绞死时我想知道除去这些文件或打印这些数量的图像

i have a search page .my result is shown in gridview and there is a button named print all
i write a loop to get all paths of documents(images) from grid view and print all but when result number is about 20000 and above my website hanged i want to know away to divide these documents or print these number of images

推荐答案

我不能说为什么网站被挂起但是在您打印所有文档的情况下(现在可能是20,000个,但将来会更多)那么为什么不从数据库中获取打印页面中所有这些文档的列表?我不认为将大量记录从一个页面传输到另一个页面是个好主意。另外,我认为问题可能出在您的打印页面上。只需在该页面中设置一个断点并开始仔细调试;你会自己了解这个问题。
I can't say why the website is hanged but in the scenario where you are printing all the documents (which may be 20,000 for now but more in future) then why don't you get the list of all those documents in the Print page from the database? I don't think it is a good idea to transfer that much big number of records from one page to another. Also, I think the issue could be in your Printing page. Just put a break point in that page and start debugging carefully; you will get to know the problem yourself.


这篇关于如何在Asp.net中打印大量文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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