Fw: printer file "name" - problem
Dennis Malen
dmalen at malen.com
Wed Mar 16 14:27:53 PST 2005
Laura,
I think I see my mistake. When I defined "printer nocodes" in the
configuator I have that going to a different file name than I do for
"printer file" command in the processing. I was told that nocodes could be
sent to any ascii file of my choosing.
That would make sense. If I am going to use nocodes to override the resident
printer which could be used for many different reports I should be able to
create many different ASCII files while using the same printer called
nocodes that goes to a default /tmp file name which remains static.
Am I correct?
Dennis
----- Original Message -----
From: "Laura Brody" <laura at hvcomputer.com>
To: "Dennis Malen" <dmalen at malen.com>; <filepro-list at lists.celestial.com>
Sent: Wednesday, March 16, 2005 5:12 PM
Subject: Re: Fw: printer file "name" - problem
> On Wed, 16 Mar 2005 15:43:12 -0500, Dennis Malen <dmalen at malen.com> wrote:
>
>> Now that the list has died down I will resubmit this problem as I never
>> received any clear cut answers.
>>
>> It really is a two part question, I will only submit part I.
>>
>> Is there any way to override in "rreport" format a printer that is
>> defined? Ken will ask me what is defined mean! The printer is defined in
>> Extended Function under Options. The processing below does not do it. Ken
>> will ask me, "Do what?". It does not allow the ASCII file to be written
>> to the disk.
>>
>> This problem is not necessarily directed to Ken.
>>> WHAT AM I DOING WRONG???????
>>>
>>>
>>> Then: pa(1,*,g)
>>> - - - - - - -
>>> If: pa=""
>>> Then: PUTENV "FPONEHEAD","on"
>>> - - - - - - -
>>> If: pa=""
>>> Then: printer type "nocodes"
>>> - - - - - - -
>>> If: pa=""
>>> Then: printer file "/tmp/dailydep"
>>>
>>> - - - - - - - -
>>>
>>> Then:pa="p";end
>>> - - - - - - - -
>>> @done" If:
>>> Then: system "cat /tmp/dailydep|pg";end
>
> I have a printer defined (not the default printer)
> in filePro as:
>
> file_it,nocodes,c:\hardcopy.txt
>
> I can print anything I want to it by just executing the
> processing code:
>
> printer name "file_it"
>
> followed by a "hardcopy", "print", or just running a
> report. I can accomplish the same thing by executing
> two commands:
>
> printer type "nocodes"
> printer file "c:\hardcopy.txt"
>
> I just thought of something....
> Since you are putting your output file in the tmp
> directory, what is the ownership and permissions
> on it? If they are wrong, then filePro would be
> unable to create the file there.
>
> --
> Laura Brody, Publisher of the filePro Developer's Journal
> +------------- Hudson Valley Computer Associates, Inc ----------+
> | PO Box 859 120 Sixth Street http://www.hvcomputer.com |
> | Verplanck, NY 10596-0859 Voice mail: (914) 739-5004 |
> +------ PC repair locally, filePro programming globally --------+
>
>
>
>
More information about the Filepro-list
mailing list