Chinaunix

标题: How to setup a dummy printer for Oracle reports [打印本页]

作者: williamw2000    时间: 2003-10-01 03:26
标题: How to setup a dummy printer for Oracle reports
Sometimes we need to setup dummy printers for whatever reason. It’s for applications in most cases.

To setup a dummy printer you need to setup an interface file and call it anything you wish. In this example it is called unixinterface.


1. Create unixinterface in /etc/lp/interface and type in the following,
    exit 0

    make sure unixinterface is owned by lp and group lp and the file permissions is 755/

2. A printer queue must be registered. To setup a printer called "unixprt" perform the following
   lpadmin -p unixprt -v /dev/null -I any -i /etc/lp/interface/unixinterface -o nobanner

3. Enable printer by
   accept unixprt
   enable unixprt

4. Ensure you have the printer unixprt listed in the Oracle reports uiprint.txt file in the reports home directory <reports home>;/guicommon6/tk60/admin and entry
unixprtostScript:2:Unix statments queue:default.ppd




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2