Page 1 of 1

Does anyone know the answers ?

PostPosted: Sun Dec 26, 2010 8:12 am
by HunterEC
Guys:

After issuing a PrinterSetUp(), how can I detect the following:

1. If the user exited via the cancel button or by closing the window ?
2. Printer selected and its corresponding port ?

Thank you.

Re: Does anyone know the answers ?

PostPosted: Wed Dec 29, 2010 7:12 pm
by James Bott
Hunter,

PrinterSetup() returns the hDC of the selected printer if Accept is pressed, or zero if cancel is pressed.

PrnGetName() returns the name of the current printer.

I don't know how you can find the port as I have never needed to know this. Why do you?

Regards,
James

Re: Does anyone know the answers ?

PostPosted: Wed Dec 29, 2010 10:25 pm
by Enrico Maria Giordano
James Bott wrote:PrnGetName() returns the name of the current printer.

I don't know how you can find the port


Code: Select all  Expand view
PrnGetPort()


:-)

EMG