Re: returning default printer name (full printer name) to a field in ORACLE FORMS(6i)
Date: 8 Aug 2002 16:48:08 -0700
Message-ID: <ee1f9e62.0208081548.25d8f97f_at_posting.google.com>
Álvaro Palma Aste <queria_direccion_at_el.perla.invalid> wrote in message news:<ais8tu$qtd$1_at_localhost.localdomain>...
[cut]
>
> Search in metalink using the key
> 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
[cut]
I got this in my e-mail. I'm not sure why the individual didn't post it to the newsgroup, but here it is:
"search the net by D2KWUTIL. This PLL and DLL have the solution"
This is the package whose name I could not remember. You would have to check whether it can do what you want.
With respect to reading the Registry directly, you want to do that only if it is absolutely necessary, because it is not guaranteed that these values will be in the same location in Windows 95,98,ME,NT,2000,XP (have I left any out?) or in versions yet unborn, although I don't see a good reason for Microsoft to change them.
If you end up having to use the Win32 API with ORA_FFI, the following article in the Microsoft Knowledge Base entitled "HOWTO: Retrieve and Set the Default Printer in Windows" should be helpful:
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q246772& Received on Fri Aug 09 2002 - 01:48:08 CEST