Re: returning default printer name (full printer name) to a field in ORACLE FORMS(6i)

From: Álvaro Palma Aste <queria_direccion_at_el.perla.invalid>
Date: Wed, 7 Aug 2002 23:02:22 +0000 (UTC)
Message-ID: <ais8tu$qtd$1_at_localhost.localdomain>


John Brown escribió:

>yopcaw9_at_yahoo.com (Bill) wrote in message news:<759d14ad.0208040555.6c16d00e_at_posting.google.com>...

>> Hi All
>>
>> I need to return the full name of the default printer to a field in ORACLE FORMS.
>>
>> My operating system is windows2000.

Search in metalink using the key
[Quoted] win_api_environment.read_registry. There is a very good example about obtaining things from the Registry. And in Windows98, you can get the default printer an port from:

HKEY_LOCAL_MACHINE\Config\0001\System\CurrentControlSet\Control\Print\Printers\Default

and

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Printers\"name of the default printer"\Port

If the printer is mapped to LPT1: you can get the real location of it from

HKEY_CURRENT_USER\Network\Persistent\LPT1

Hope it helps

-- 
Atte.
Álvaro Palma Aste
Grupo de Ing. Biomédica
Depto. de Ing. Eléctrica - U. de Chile
******************************************************
It's the only form of protest they're allowed 
I've seen their silent faces scream so loud 
If they were to speak these words they'd go missing too 
Another woman on a torture table what else can they do

Sting - They Dance Alone...
Received on Thu Aug 08 2002 - 01:02:22 CEST

Original text of this message