printer file "name" - problem RESOLVED!!!!!

Kenneth Brody kenbrody at bestweb.net
Fri Mar 18 14:03:57 PST 2005


Quoting Dennis Malen (Fri, 18 Mar 2005 12:28:12 -0500):

> Attached is a text file that explains the appropriate way to override a
> printer defined in an output report, how to use PUTENV to have the
> heading run only once, how to print an ASCII file to the disk.
[...]

Here is the code you originally posted:

==========

   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

==========

Here is the code that "solved" the problem:

 1   If:
   Then: pa(1,*,g)
 2  -------   -   -   -   -   -   -   -   -
     If: pa=""               'oh="y"
   Then: PUTENV "FPONEHEAD","on"
 3  -------   -   -   -   -   -   -   -   -
     If: pa=""
   Then: printer type "nocodes"
 4  -------   -   -   -   -   -   -   -   -
     If: pa=""
   Then: printer file "/tmp/dailydep"
 5  -------   -   -   -   -   -   -   -   -
     If:
   Then: pa="p";end
 6  -------   -   -   -   -   -   -   -   -
@doneIf:
   Then: system "cat /tmp/dailydep|pg";end

==========

What did you change?  With the exception of a comment on line 2, they
look identical to me.

--
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list