您的位置:首页 > 移动开发

Using lp to test report printing in Unix for Apps

2008-10-08 19:26 417 查看
Days ago, user requested me to change the layout to fit for her new pre-printed paper. She is in Ireland and thousands kilometers away from Singapore. There's no way for me to get that pre-printed paper and test myself. So I have to ask her favour to check the printout. The first printout was very ugly and totally off-aligned. I had an idea to print a manually created file direct to her printer. So I download her request's output file and edit it with a hex editor , add a rule into this text file, say:

1234567890123456789012345678901234567890

And I upload this file into my apps unix server.

Then I use lp to print it

lp -c -d pr-cle-invdm01 text.txt

I also checked the printer SRW driver definition in apps to make sure if I missed any initialization string and reset string. Fortunately , there's neither init string nor reset string. So no need to use FNDPRESC.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐