<html><head><base href="x-msg://247/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>It seems that my problem was the option "-p" instead of "-pn". I have followed Ken's advice and it works now.</div><div><br></div><div>Note:</div><div><br></div><div>This is what he online filePro manual shows for dreport's flags (fragment):</div><div><br></div><div><span class="Apple-style-span" style="font-family: Arial; font-size: 12px; "><table width="486" cellspacing="0" cellpadding="1" style="position: static; z-index: auto; "><tbody><tr valign="top"><td width="27.16%"><p style="margin-left: 5.75pt; margin-right: 6.5pt; margin-top: 3pt; margin-bottom: 3pt; text-align: left; font-family: Arial; font-size: 9pt; "><font style="font-family: 'Times New Roman'; font-size: 10pt; "><font class="Apple-style-span" color="#CF080F">-P name</font></font></p></td><td width="72.84%"><p style="margin-left: 5.75pt; margin-right: 6.5pt; margin-top: 3pt; margin-bottom: 3pt; text-align: left; font-family: Arial; font-size: 9pt; "><font style="font-family: 'Times New Roman'; font-size: 10pt; "><font class="Apple-style-span" color="#CF080F">Selects the printer name.</font></font></p></td></tr></tbody></table></span><div><span class="Apple-style-span" style="font-family: Arial; font-size: 12px; "><table width="486" cellspacing="0" cellpadding="1" style="position: static; z-index: auto; "><tbody><tr valign="top"><td width="27.16%"><p style="margin-left: 5.75pt; margin-right: 6.5pt; margin-top: 3pt; margin-bottom: 3pt; text-align: left; font-family: Arial; font-size: 9pt; "><font style="font-family: 'Times New Roman'; font-size: 10pt; "><font class="Apple-style-span" color="#48A90C">-P file </font></font></p></td><td width="72.84%"><p style="margin-left: 5.75pt; margin-right: 6.5pt; margin-top: 3pt; margin-bottom: 3pt; text-align: left; font-family: Arial; font-size: 9pt; "><font style="font-family: 'Times New Roman'; font-size: 10pt; "><font class="Apple-style-span" color="#48A90C">Selects the file to put the output.</font></font></p></td></tr></tbody></table></span><div><span class="Apple-style-span" style="font-family: Arial; font-size: 12px; "><table width="486" cellspacing="0" cellpadding="1" style="position: static; z-index: auto; "><tbody><tr valign="top"><td width="27.16%"><p style="margin-left: 5.75pt; margin-right: 6.5pt; margin-top: 3pt; margin-bottom: 3pt; text-align: left; font-family: Arial; font-size: 9pt; "><font style="font-family: 'Times New Roman'; font-size: 10pt; "><font class="Apple-style-span" color="#48A90C">-PN name</font></font></p></td><td width="72.84%"><p style="margin-left: 5.75pt; margin-right: 6.5pt; margin-top: 3pt; margin-bottom: 3pt; text-align: left; font-family: Arial; font-size: 9pt; "><font style="font-family: 'Times New Roman'; font-size: 10pt; "><font class="Apple-style-span" color="#48A90C">Sets the printer name.</font></font></p></td></tr></tbody></table></span><div><br></div><div>Based on the above, my understanding was that "-P" can be used with printer names, too (I didn't get with reading until "-pn" :-) )</div><div>Maybe the online manual's entry for dreport flags can be updated in order to avoid confusion of the filePro novices like me.</div><div><br></div><div>Thank you to everybody. I appreciate your quick and valuable answers.</div><div><br></div><div>Flavius.</div></div></div></div><div><br></div><div><br></div><div><br></div><div><br><div><div>On Jan 28, 2010, at 5:06 PM, John Esak wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-family: Verdana; font-size: 10pt; "><div dir="ltr" align="left"><span class="796410523-28012010"><font color="#0000ff" face="Arial">Oh sorry -p allows printing to any file, -n must have a printer name as the argument. I think. :-)</font></span></div><div dir="ltr" align="left"><span class="796410523-28012010"><font face="Arial"></font></span> </div><div dir="ltr" align="left"><span class="796410523-28012010"><font face="Arial">John</font></span></div><br><blockquote style="border-left-color: rgb(0, 0, 255); border-left-width: 2px; border-left-style: solid; padding-left: 5px; margin-left: 5px; margin-right: 0px; "><div dir="ltr" lang="en-us" class="OutlookMessageHeader" align="left"><hr tabindex="-1"><font face="Tahoma"><b>From:</b><span class="Apple-converted-space"> </span><a href="mailto:filepro-list-bounces+john=valar.com@lists.celestial.com">filepro-list-bounces+john=valar.com@lists.celestial.com</a><span class="Apple-converted-space"> </span>[mailto:filepro-list-bounces+john=valar.com@lists.celestial.com]<span class="Apple-converted-space"> </span><b>On Behalf Of<span class="Apple-converted-space"> </span></b>flavius m<br><b>Sent:</b><span class="Apple-converted-space"> </span>Thursday, January 28, 2010 2:45 PM<br><b>To:</b><span class="Apple-converted-space"> </span><a href="mailto:kenbrody@gmail.com">kenbrody@gmail.com</a><br><b>Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a><br><b>Subject:</b><span class="Apple-converted-space"> </span>RE: printing error - help<br></font><br></div><div></div>Hello,<br><br>The printer is defined in Filepro. This is how it shows up in Filepro Configuration:<br>23 pfprinter ? printer <span class="Apple-converted-space"> </span><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 -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 -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>> Date: Thu, 28 Jan 2010 14:02:36 -0500<br>> From:<span class="Apple-converted-space"> </span><a href="mailto:kenbrody@gmail.com">kenbrody@gmail.com</a><br>> To:<span class="Apple-converted-space"> </span><a href="mailto:flaviusm@hotmail.com">flaviusm@hotmail.com</a><br>> CC:<span class="Apple-converted-space"> </span><a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a><br>> Subject: Re: printing error - help<br>><span class="Apple-converted-space"> </span><br>> On 1/28/2010 1:43 PM, Flavius Moldovan wrote:<br>> > Hello,<br>> ><br>> > These are the permissions for tmp directory and the printer device:<br>> ><br>> > drwxrwxrwt 15 root root 16384 Jan 28 12:34 /tmp<br>> ><br>> > crw-rw-rw- 1 root lp 6, 0 Jul 29 2009 /dev/lp0<br>> ><br>> > If I print to a file ( "-p /tmp/filename.txt") it works ok.<br>> [...]<br>> >>> *** A System Error Has Occurred ***<br>> >>><br>> >>> Cannot Open Print File<br>> >>><br>> >>> printer: Permission denied<br>> >>><br>> >>><br>> >>> I have tried both the "-P printername" in the command line and the "printer name "printername" " in the processing.<br>><span class="Apple-converted-space"> </span><br>> What, exactly, are you using when it fails?<br>><span class="Apple-converted-space"> </span><br>> What command-line flags are you using?<br>><span class="Apple-converted-space"> </span><br>> What is the exact destination command defined in pmaint for the specified<span class="Apple-converted-space"> </span><br>> printer?<br>><span class="Apple-converted-space"> </span><br>> Note that, to specify a printer _name_ on the command, use "-pn", not "-p".<br>><span class="Apple-converted-space"> </span><br>> --<span class="Apple-converted-space"> </span><br>> Kenneth Brody<br><br><hr>Hotmail: Free, trusted and rich email service.<span class="Apple-converted-space"> </span><a href="http://clk.atdmt.com/GBL/go/196390708/direct/01/" target="_new">Get it now.</a></blockquote></div></span></blockquote></div><br></div></body></html>