printing error - help

Flavius Moldovan flaviusm at hotmail.com
Thu Jan 28 15:50:17 PST 2010


Hello,

It seems that my problem was the option "-p" instead of "-pn". I have followed Ken's advice and it works now.

Note:

This is what he online filePro manual shows for dreport's flags (fragment):

-P name
Selects the printer name.
-P file  
Selects the file to put the output.
-PN name
Sets the printer name.

Based on the above, my understanding was that "-P" can be used with printer names, too (I didn't get with reading until "-pn" :-) )
Maybe the online manual's entry for dreport flags can be updated in order to avoid confusion of the filePro novices like me.

Thank you to everybody. I appreciate your quick and valuable answers.

Flavius.




On Jan 28, 2010, at 5:06 PM, John Esak wrote:

> Oh sorry -p allows printing to any file, -n must have a printer name as the argument.  I think.  :-)
>  
> John
> 
> From: filepro-list-bounces+john=valar.com at lists.celestial.com [mailto:filepro-list-bounces+john=valar.com at lists.celestial.com] On Behalf Of flavius m
> Sent: Thursday, January 28, 2010 2:45 PM
> To: kenbrody at gmail.com
> Cc: filepro-list at lists.celestial.com
> Subject: RE: printing error - help
> 
> Hello,
> 
> The printer is defined in Filepro. This is how it shows up in Filepro Configuration:
> 23 pfprinter           ? printer   
> 
> where "printer" is the real name of the printer defined in linux for /dev/lp0.
> 
> Report command:
> /appl/fp/dreport myreport -f myform -s  -P printer
> 
> 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?).
> 
> I get the same error if I try it as root or another user.
> 
> This is what I did:
> 
> I ran this:
> /appl/fp/dreport myreport -f myform -s  -pq
> 
> then selected default printer then the printer "printer" from the list and it worked. However it doesn't work the other way.
> 
> Thank you,
> Flavius.
> 
> 
> 
> 
> > Date: Thu, 28 Jan 2010 14:02:36 -0500
> > From: kenbrody at gmail.com
> > To: flaviusm at hotmail.com
> > CC: filepro-list at lists.celestial.com
> > Subject: Re: printing error - help
> > 
> > On 1/28/2010 1:43 PM, Flavius Moldovan wrote:
> > > Hello,
> > >
> > > These are the permissions for tmp directory and the printer device:
> > >
> > > drwxrwxrwt 15 root root 16384 Jan 28 12:34 /tmp
> > >
> > > crw-rw-rw- 1 root lp 6, 0 Jul 29 2009 /dev/lp0
> > >
> > > If I print to a file ( "-p /tmp/filename.txt") it works ok.
> > [...]
> > >>> *** A System Error Has Occurred ***
> > >>>
> > >>> Cannot Open Print File
> > >>>
> > >>> printer: Permission denied
> > >>>
> > >>>
> > >>> I have tried both the "-P printername" in the command line and the "printer name "printername" " in the processing.
> > 
> > What, exactly, are you using when it fails?
> > 
> > What command-line flags are you using?
> > 
> > What is the exact destination command defined in pmaint for the specified 
> > printer?
> > 
> > Note that, to specify a printer _name_ on the command, use "-pn", not "-p".
> > 
> > -- 
> > Kenneth Brody
> 
> Hotmail: Free, trusted and rich email service. Get it now.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20100128/de02ebba/attachment.html 


More information about the Filepro-list mailing list