How to get printer dialog value

Posted by anandknr on 11-Jan-2012 07:58

Hi All,

I was trying to get the user input value from a system dialog for printer. PLease see below my code.

DEF VAR v-ans AS logi .
SYSTEM-DIALOG PRINTER-SETUP NUM-COPIES 3 UPDATE v-ans .

Is there any way to get user input to the field no . of copies so that i can use the statement below .


output to PRINTER NUM-COPIES
<user input from printer dialog>

If I don't use the NUM-COPIES in output to statement only 1 copy will be printed even though the user have opted for more than one.

Any thoughts please share... Re: NUM-COPIES  in Printer output not working

All Replies

Posted by Stefan Drissen on 11-Jan-2012 17:29

From the help file:

Specifies the number of copies to print.
The
constant or expression parameters must evaluate to a positive
integer. This option is supported in Windows only, and only with printer drivers
that support multi-copy printing
. Specifying the number of copies to print
overrides, but does not change, the number of copies defined in the default
print context.

I suspect that your printer driver does not support multiple copies. To verify this start notepad and attempt to print with 'number of copies' set higher than 1. The novaPDF driver for example will then complain with a message:

---------------------------

Print

---------------------------

This printer cannot support this many copies.

Number of copies will be set to printer maximum of 1.

---------------------------

OK  

---------------------------

Posted by anandknr on 12-Jan-2012 01:12

Sorry for editing te post . Now can u help me in this ?

Posted by Stefan Drissen on 02-Feb-2012 02:35

A knowledge base article was published today stating that is is not possible.

https://progress.my.salesforce.com/articles/Article/000028234?popup=true

No, it is not possible to get the value of NUM-COPIES from SYSTEM-DIALOG PRINTER SETUP via ABL if a user changes it.

This thread is closed