打印10次后出现问题 [英] Problem in printing after 10 times

查看:63
本文介绍了打印10次后出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我的VB.Net软件有一个紧急问题,我的软件是一个简单的库存系统,但我的问题是在条码打印,我的客户使用品牌Datamax -O'Neil E-4204B Mark III,他从我的软件打印10次后打印机和软件停止工作,他应该重新启动计算机重新打印。对于打印我使用Crystal Reports设计条形码标签和子程序Printtoprinter()直接打印。

任何人都可以帮我PLZ。

感谢所有

解决方案

从你所描述的我假设你没有任何崩溃日志或其他任何东西来帮助调试问题所以....

您是否尝试在某些测试系统上进行测试?

它可能不是一个糟糕的代码 - 它可能是您客户的机器。



我真的建议你做一些测试。

一个提示是 - 注意打印后台程序进程(一个Windows进程)。从您的示例(该用户必须重新启动计算机),很可能该进程(假脱机程序)崩溃。您还可以在代码中包含检查例程,该例程检查假脱机程序进程是否正常运行 - 如果是 - 打印 - 如果不是 - 启动它(net start spooler)。



希望有所帮助。


问题出现在Crystal Report中,我尝试了另一种方法(在打印文档中绘制条形码)并且它正常工作。谢谢所有人。

Hi all,
I have an urgent problem in my VB.Net software, my software is a simple inventory system, but my problem is in the Barcodes printing, my client use the brand "Datamax-O'Neil E-4204B Mark III", after he print 10 times from my software the printer and the software stop working and he should restart the computer to reprint. For printing i use Crystal Reports to design the barcode label and the subroutine Printtoprinter() to print directly.
Can anyone help me plz.
Thanks for all

解决方案

From what you have described I am assuming you don't have any crash log or anything else to help debug the problem so....
Have you tried to test it on some test system?
It might not be a bad code - it might be your client's machine.

I would really recommend you to do some testing.
And a hint would be - watch out for print spooler process (a windows process). From your example (that user has to restart the computer) it's hihly probable that the process (spooler) crashes. You could also include checking routine in your code which checks if the spooler process is up and running - if it is - print - if not - start it (net start spooler).

Hope that helps.


The problem was in Crystal Report it self, i tried another method (Drawing the barcode in a print document) and it works properly.Thanks for all.


这篇关于打印10次后出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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