如何在打印水晶报表中的最后一行后停止打印机(VS2005) [英] how stop the printer after print the Last line in the crystal report (VS2005)

查看:88
本文介绍了如何在打印水晶报表中的最后一行后停止打印机(VS2005)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在vs2005中有一份详尽的报告.我必须使用dotmatrix打印机在卷纸上打印此报告.打印报告后,它会省略一些浪费空间.

我必须将打印机停在最后一行的打印位置.

我一直被这个问题困扰着,但我找不到解决办法.

请帮助我解决此问题.

i have a crystal report in vs2005. I have to print this report in rollpaper with dotmatrix printer. After printng the report it omit some waste spaces.

I have to stop the printer where the last line was printed.

i was seached with this problem but i am unable to find a solution.

please helpme to come out this problem

推荐答案

尝试直接控制打印机(尤其是使用CrystallReports)是一个非常糟糕的主意.您应该从文档角度考虑,并始终尝试打印整个文档.如果用户只想打印文档的一部分,则可以通过选择页面范围来选择在打印对话框级别进行打印.但是它们将是页面,而不是文档的图形元素.

不要试图使事情变得比原来更复杂,更复杂或更纠结:
保持这种方式: http://en.wikipedia.org/wiki/KISS_principle [ http://en.wikipedia.org/wiki/Accidental_complexity [ ^ ].
单独的问题: http://en.wikipedia.org/wiki/Separation_of_concerns [
It''s a really bad idea to try to control a printer directly, especially with CrystallReports. You should think in terms of a document, and always try to print the whole document. If a user wants to print just part of the document, that user can choose to do it at the level of the print dialog, by selecting a range of pages. But they will be pages, not graphic elements of the document.

Don''t try to make things more complex, convoluted or entangled than they can be:
Keep it that way: http://en.wikipedia.org/wiki/KISS_principle[^].
Don''t create accidental complexity: http://en.wikipedia.org/wiki/Accidental_complexity[^].
Separate concerns: http://en.wikipedia.org/wiki/Separation_of_concerns[^].

—SA


我解决了这个问题,因为在Crystal报表中,我们无法在带有动态长度(即动态页面大小)的Crystal Reports中在卷纸中直接打印我们有标准的页面尺寸(A4,Letter,信封等.)

对于这种情况,请阅读以下文章:http://support.microsoft.com/kb/322090.本文介绍了如何打印原始数据.

将所有数据写入并分配到文本文件中,然后打印.

谢谢
I solved this Problem, wecan''t print dircetly in rollpaper with Crystal Reports for dynamic length(ie Dynamic Page Size), Because in Crystal report we have a standard page size(A4,Letter,Envelope etc ..)

For this Case Please Go through this Article: http://support.microsoft.com/kb/322090. This Article describes how print a raw data.

Write and allign all your data in a Textfile and Print.

Thanks


这篇关于如何在打印水晶报表中的最后一行后停止打印机(VS2005)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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