problem with printing

Hi,all

My computer is installed with QNX6.1 and I meet several problem with
printing.


\

  1.  When I print text file under ped, the ¡°Send to Printer¡± option is
    

Disabled. It seem that no printer is installed. So I can only print it to a
file, and then send the *.phs file to a HP Printer by using the following
command:

#phs-to-pcl print1.phs > /dev/par1

How can I print directly to printer under ped?



2) Even though I can print indirectly by using phs-to-pcl on host with
QNX6.1 installed, I can¡¯t print *.phs file on a target. I use a bootable
image to start photon on the target system and I also copy all the lib and
font file needed. But when I run phs-to-pcl, there is no response from the
printer. What¡¯s wrong? Do I miss any important config file for printer?



3) In a photon program, how to sending print job directly to a printer?
What kind of context should I set? I set the following context data before
start a print job:

PpSetPC( pc, Pp_PC_FILENAME, ¡°/dev/par1¡±,0);

PpSetPC( pc, Pp_PC_DRIVER, ¡°phs-to-pcl¡±,0);

After run, the printer print several page with a lot unknow wrong
characters.

  1. In photon programer¡¯s guide, It says that the possible value and
    meanings for the members of a print context are defined in
    /usr/photon/print/printers. But why I can¡¯t find this file and even the
    ¡°/usr/photon/print¡± subdirectory?

Take a look at
http://www.qnx.com/developer/docs/qnx_6.1_docs/sysadmin/docs/wip.html in the
“Connecting Printers, Terminal and Other I/O Devices”. This documentation
will answer most of you printing questions.

Regards,
Dave B.


“lpber” <lpber@163.com> wrote in message news:aguhiq$6gc$1@inn.qnx.com

Hi,all

My computer is installed with QNX6.1 and I meet several problem with
printing.


\

  1.  When I print text file under ped, the ¡°Send to Printer¡± option
    

is
Disabled. It seem that no printer is installed. So I can only print it to
a
file, and then send the *.phs file to a HP Printer by using the following
command:

#phs-to-pcl print1.phs > /dev/par1

How can I print directly to printer under ped?



2) Even though I can print indirectly by using phs-to-pcl on host
with
QNX6.1 installed, I can¡¯t print *.phs file on a target. I use a bootable
image to start photon on the target system and I also copy all the lib and
font file needed. But when I run phs-to-pcl, there is no response from the
printer. What¡¯s wrong? Do I miss any important config file for printer?



3) In a photon program, how to sending print job directly to a
printer?
What kind of context should I set? I set the following context data before
start a print job:

PpSetPC( pc, Pp_PC_FILENAME, ¡°/dev/par1¡±,0);

PpSetPC( pc, Pp_PC_DRIVER, ¡°phs-to-pcl¡±,0);

After run, the printer print several page with a lot unknow wrong
characters.

  1. In photon programer¡¯s guide, It says that the possible value and
    meanings for the members of a print context are defined in
    /usr/photon/print/printers. But why I can¡¯t find this file and even the
    ¡°/usr/photon/print¡± subdirectory?
    \

On Mon, 15 Jul 2002 21:16:36 +0800, “lpber” <lpber@163.com> wrote:

It seems the spooler utility (that Photon uses for printing)
is not running for some reason. Read the doc on the spooler utility,
see also the Admin Guide (“work in progress”), there is a chapter on
installing printer with or wo. the spooler, and on remote printing:
http://www.qnx.com/developer/docs/qnx_6.1_docs/sysadmin/docs/wip.html

ako

Hi,all

My computer is installed with QNX6.1 and I meet several problem with
printing.


\

  1.  When I print text file under ped, the ¡°Send to Printer¡± option is
    

Disabled. It seem that no printer is installed. So I can only print it to a
file, and then send the *.phs file to a HP Printer by using the following
command:

#phs-to-pcl print1.phs > /dev/par1

How can I print directly to printer under ped?



2) Even though I can print indirectly by using phs-to-pcl on host with
QNX6.1 installed, I can¡¯t print *.phs file on a target. I use a bootable
image to start photon on the target system and I also copy all the lib and
font file needed. But when I run phs-to-pcl, there is no response from the
printer. What¡¯s wrong? Do I miss any important config file for printer?



3) In a photon program, how to sending print job directly to a printer?
What kind of context should I set? I set the following context data before
start a print job:

PpSetPC( pc, Pp_PC_FILENAME, ¡°/dev/par1¡±,0);

PpSetPC( pc, Pp_PC_DRIVER, ¡°phs-to-pcl¡±,0);

After run, the printer print several page with a lot unknow wrong
characters.

  1. In photon programer¡¯s guide, It says that the possible value and
    meanings for the members of a print context are defined in
    /usr/photon/print/printers. But why I can¡¯t find this file and even the
    ¡°/usr/photon/print¡± subdirectory?
    \