[comp.databases] dBASE III Plus and LABELS

BORIS@uwovax.uwo.ca (07/20/89)

Using dBASE III Plus, I have written a menu driven application.  One of the
options is to produce mailing labels.  

Although the label forms provided did not fit in one of the provided options
using CREATE/MODIFY LABEL, I was able to make an appropriate *.lbl file.

When the labels are printed using the following command
        LABEL FORM firm TO PRINT  (where firm = firm.lbl)
the labels are printed.  However, each of the labels also scrolls across the
screen.   I was unable to find a way to stop this screen scrolling.

Has anybody successfully stopped the screen output in this situation???

I  initially thought that I could write a simple report program modelled after
the example on page p12-17 of the manual (I have used this successfully before).
I encountered difficulties in that one label would be printed and then the
printer would try to skip to the top of the next page.  Is the page length
the length of one label or is it the length between perforations.  I thought
that I could effectively "turn paging off" by incrementing the line counter
indefinitely but this didn't seem to work either.

Any suggestions, directions, etc. would be greatfully appreciated.

keithb@hpindda.HP.COM (Keith Broussard) (07/21/89)

To stop the labels from being printed on your screen, issue
   SET CONSOLE OFF
before the LABEL command, then
   SET CONSOLE ON
afterwards.

fredb@llama.rtech.UUCP (Fred Buechler) (07/21/89)

In article <2994@uwovax.uwo.ca> BORIS@uwovax.uwo.ca writes:
>
>
>Using dBASE III Plus, I have written a menu driven application.  One of the
>options is to produce mailing labels.  
>
>Although the label forms provided did not fit in one of the provided options
>using CREATE/MODIFY LABEL, I was able to make an appropriate *.lbl file.
>
>When the labels are printed using the following command
>        LABEL FORM firm TO PRINT  (where firm = firm.lbl)
>the labels are printed.  However, each of the labels also scrolls across the
>screen.   I was unable to find a way to stop this screen scrolling.
>
>Has anybody successfully stopped the screen output in this situation???
>

Use the command "SET CONSOLE OFF" in your program before the LABEL command.
Be sure to turn the console back on after labels are printed. Note that the
console off trick does not work interactively.

Have fun!

-- Fred.

jbrown@herron.uucp (Jordan Brown) (07/21/89)

fredb@llama.rtech.UUCP (Fred Buechler) writes:
> Use the command "SET CONSOLE OFF" in your program before the LABEL command.
> Be sure to turn the console back on after labels are printed. Note that the
> console off trick does not work interactively.

The SET CONSOLE OFF "trick" not working interactively is a feature.
(I should know - I put it in.)  Too many times a dBASE II program would
get an error while CONSOLE was OFF and it'd be a bitch to get sanity
restored, especially for a novice user who doesn't really understand
what's going on.  There were few enough cases where it made sense to
turn console output off across dot prompt work that it seemed (and
still seems) to be a big win.  (I think CONSOLE is turned ON just before
errors, too, for a similar reason.)