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.
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.
相关文章推荐
- WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- How to control printer orientation(Landscape / Portrait) for an AX report in X++
- Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-
- How to test for a valid user session in a JSP
- WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-ja
- WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-
- Hadoop出现错误:WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable,解决方案
- HADOOP:WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- 使用hadoop命令警告提示:Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- Unable to load native-hadoop library for your platform... using builtin-java classes where applicabl
- How to find indexPath for tapped button in tableView Using Seque
- unable to load native-hadoop library for your platform using builtin-java classes
- Unable to load native-hadoop library for your platform... using builtin-java classes where applicab
- Unable to load native-hadoop library for your platform... using builtin-Java classes where applicable
- Unable to find a value for "字段名" in object of class java.lang.String using operator "."
- WARN til.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-j
- 使用cocapods报错 [!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes
- how to config the tftpd-hpa server in the ubuntu using for remote tftp client '-p' and '-r' command