<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hello,<br><br>The printer is defined in Filepro. This is how it shows up in Filepro Configuration:<br>23 pfprinter&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? printer&nbsp;&nbsp; <br><br>where "printer" is the real name of the printer defined in linux for /dev/lp0.<br><br>Report command:<br>/appl/fp/dreport myreport -f myform -s&nbsp; -P printer<br><br>What is the difference between -p and -pn? (per online manual one selects the printer the other one sets the printer. What is the difference between the two?).<br><br>I get the same error if I try it as root or another user.<br><br>This is what I did:<br><br>I ran this:<br>/appl/fp/dreport myreport -f myform -s&nbsp; -pq<br><br>then selected default printer then the printer "printer" from the list and it worked. However it doesn't work the other way.<br><br>Thank you,<br>Flavius.<br><br><br><br><br>&gt; Date: Thu, 28 Jan 2010 14:02:36 -0500<br>&gt; From: kenbrody@gmail.com<br>&gt; To: flaviusm@hotmail.com<br>&gt; CC: filepro-list@lists.celestial.com<br>&gt; Subject: Re: printing error - help<br>&gt; <br>&gt; On 1/28/2010 1:43 PM, Flavius Moldovan wrote:<br>&gt; &gt; Hello,<br>&gt; &gt;<br>&gt; &gt; These are the permissions for tmp directory and the printer device:<br>&gt; &gt;<br>&gt; &gt; drwxrwxrwt  15 root root 16384 Jan 28 12:34 /tmp<br>&gt; &gt;<br>&gt; &gt; crw-rw-rw-  1 root lp 6, 0 Jul 29  2009 /dev/lp0<br>&gt; &gt;<br>&gt; &gt; If I print to a file ( "-p /tmp/filename.txt") it works ok.<br>&gt; [...]<br>&gt; &gt;&gt;&gt; *** A System Error Has Occurred ***<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; Cannot Open Print File<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; printer: Permission denied<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; I have tried both the "-P printername" in the command line and the  "printer name "printername" " in the processing.<br>&gt; <br>&gt; What, exactly, are you using when it fails?<br>&gt; <br>&gt; What command-line flags are you using?<br>&gt; <br>&gt; What is the exact destination command defined in pmaint for the specified <br>&gt; printer?<br>&gt; <br>&gt; Note that, to specify a printer _name_ on the command, use "-pn", not "-p".<br>&gt; <br>&gt; -- <br>&gt; Kenneth Brody<br>                                               <br /><hr />Hotmail: Free, trusted and rich email service. <a href='http://clk.atdmt.com/GBL/go/196390708/direct/01/' target='_new'>Get it now.</a></body>
</html>