Hi All,

I would like to thanks Mark W. for his tireless efforts to solve the
problems I was having with the new printing commands in Rev 2.9. With
rc-1, it seems that the sudden quitting I was experiencing when
choosing certain printers has now stopped happening
<http://quality.runrev.com/qacenter/show_bug.cgi?id=5623>. Thanks Mark
:-)

I have an application which prints to an A4 printer and to a label
printer. Previously, I have had to make the users go through Page
Setup and Print dialogs every time the printer changed. Now I can do
the following which I thought others might be interested to see.

One off page setup for each printer:

    set the printersettings to the cPrintSet["A4"] of this stack
    answer page setup
    put the result into tRes
    if tRes is empty then
        set the cPrintSet["A4"] of this stack to the printersettings
    end if

and repeat for the label printer, using & setting the cPrintSet["Label"].


On off printer setup for each printer:

    set the printersettings to the cPrintSet["A4"] of this stack
    answer printer
    put the result into tRes
    if tRes is empty then
        set the cPrintSet["A4"] of this stack to the printersettings
    end if

and repeat for the label printer, using & setting the cPrintSet["Label"].


Then for printing a label, I just have to do the following:

    set the printersettings to the cPrintSet["Label"] of this stack
    set the printmargins to "10,10,10,10"
    revShowPrintDialog false, false
    revPrintField the long name of fld "Label"

and similarly for printing an A4 report.

Note that it is necessary to put in the "revShowPrintDialog false,
false" line or you will get both print dialogs by default. I intend to
have a check to see whether page setup & print dialogs have already
been done for the specified printer, and if not, use this line to make
them happen once.

There are other features like setting printerOutput, printRanges etc.
If you want these to take effect, you MUST have "revShowPrintDialog
false, false" or those settings will be over-ridden by whatever is
chosen in the print dialog.

Note that Rev now does respect the page range specified in the Print
dialog, which is a fix of bug
<http://quality.runrev.com/qacenter/show_bug.cgi?id=3267>

Cheers,
Sarah
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to