Author: Peter Cushing
Posted: 2006-07-21 at 04:27:56
Fletcher Johnson wrote:
> Dave,
>
> I have a form where I have one button that says "setup printer" which calls
> Sys(1037). This does work to set the desired printer. But if the user
> selects "duplex" (double sided) printing, the printer ignores it. In this
> case, the program has 4 separate calls to "report form ...." so that we can
> generate very differently formatted portions.
>
> When I add "prompt" to the report, it doesn't remember the duplex mode
> either (although it will then print in duplex mode).
>
> If I set the printer as the windows default printer and then set duplex on
> (again as the default), it still ignores the setting.
>
> Any idea how I get ask the user once to select a printer and then have those
> settings preserved for each report form call after that? The prompt option
> currently works, but they get it four times and each time, they have to
> specifically set it to use duplex printing.
>
Hi Fletcher,
Our app has to print purchase orders which have terms and conditions on
the back, so we need to print duplex. All printing and emails are
handled through a seperate app on another machine that processes them
from a queue. When someone wants to print a purchase order they just
pick a printer from the list presented to them. If they print to one
our canon printers called CLC3200 what happens is that I have set up a
second printer CLC3200-2 which prints to exactly the same place but is
defined as duplex. E.g.
cPrinter = "CLC3200"
set printer to name (cPrinter) && normal printing
cPrinter = "CLC3200-2"
set printer to name (cPrinter) && duplex printing
I looked at doing this through the windows API but found it too
complicated and in the mean time I got this working, and has been going
a couple of years now with no problems. Our orders can have a second
sheet and can also be printed in 3 colours, so there can be 6 report
calls, which would be a pain to set each one.
If you need any more information please let me know.
Peter