FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Does anyone know the answers ?
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Does anyone know the answers ?
Posted: Sun Dec 26, 2010 08: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.

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Does anyone know the answers ?
Posted: Wed Dec 29, 2010 07: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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Does anyone know the answers ?
Posted: 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 (fw): Select all Collapse
PrnGetPort()


:-)

EMG

Continue the discussion