Does anyone know the answers ?

Does anyone know the answers ?

Postby HunterEC » Sun Dec 26, 2010 8:12 am

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.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Does anyone know the answers ?

Postby James Bott » Wed Dec 29, 2010 7:12 pm

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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Does anyone know the answers ?

Postby Enrico Maria Giordano » Wed Dec 29, 2010 10:25 pm

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
User avatar
Enrico Maria Giordano
 
Posts: 8711
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 86 guests