Fw: printer file "name" - problem

Laura Brody laura at hvcomputer.com
Wed Mar 16 14:12:24 PST 2005


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