Output processing, lookups, and system calls

Kenneth Brody kenbrody at bestweb.net
Wed Aug 24 07:12:34 PDT 2005


Quoting Dave Burris (Tue, 23 Aug 2005 22:39:46 -0400):
[...]
> I am running this code from *report.  The strange thing is that the
> ascii file is generated correctly every time.  The pdf file is also
> generated correctly when there are no lookup and getnext commands that
> run.  I walk through the code and watch the system command run, but no
> pdf file is created.  If I run the same command from the command line,
> the pdf is created ok, and if I re-run the report for an invoice with no
> invoice items (just time entries so the above lookup returns no invoice
> items), the pdf is created successfully.  It is like filePro fails to
> execute the command completely, but I see no error.  The system command
> is:
>
> ::system "/appl/fp/text2pdf"<if

What if you replace this with:

    SYSTEM "/appl/fp/text2pdf.debug" < if

and create a "text2pdf.debug" script with:

    echo "Running text2pdf.debug on file:"
    ls -l $1
    read junk
    /appl/fp/text2pdf $1
    echo "text2pdf returned with an exit of " $?
    read junk

Is there any difference in the display with LOOKUP/GETNEXT and without?

--
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