Home » Developer & Programmer » Forms » How to retreive the list of printers connected to my pc in Developer/2000 forms 4.5
How to retreive the list of printers connected to my pc in Developer/2000 forms 4.5 [message #82416] Mon, 26 May 2003 03:01 Go to next message
Ravi
Messages: 251
Registered: June 1998
Senior Member
Dear Sir,

I want to list down all the printers that is installed in my pc in an LOV item, for an application in Developer/2000 Forms 4.5 & above.

Please help me.

Thanks

Ravi
Re: How to retreive the list of printers connected to my pc in Developer/2000 forms 4.5 [message #82427 is a reply to message #82416] Mon, 26 May 2003 07:02 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
If you're in a Windows environment: Attach the library D2KWUTIL.PLL and use the win_api_dialog.Select_Printer procedure:
Declare
	v_printer VARCHAR2(250);
	v_port    VARCHAR2(250);
Begin
	Win_Api_Dialog.Select_Printer(v_printer, v_port, FALSE);
End;
D2KWUTIL can be found in %ORACLE_HOME%/Tools/DevDem60/Demo/Forms

MHE
Re: How to retreive the list of printers connected to my pc in Developer/2000 forms 4.5 [message #169844 is a reply to message #82427] Sat, 29 April 2006 05:16 Go to previous messageGo to next message
GSREDDY
Messages: 13
Registered: October 2005
Location: Hyderabad
Junior Member
Dear Maaher,

when i run the below script

Declare
	v_printer VARCHAR2(250);
	v_port    VARCHAR2(250);
Begin
	Win_Api_Dialog.Select_Printer(v_printer, v_port, FALSE);
End;


i got the following error

FRM-40734 internal error, PL/SQL error occured

whatz problem with the code
Re: How to retreive the list of printers connected to my pc in Developer/2000 forms 4.5 [message #169953 is a reply to message #169844] Mon, 01 May 2006 00:19 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Did you get the d2kwutil code from the Oracle Web site? Have you installed it? Did you read its installation and usage guide?

David
Previous Topic: set keyboard keys
Next Topic: couple of quick questions
Goto Forum:
  


Current Time: Fri Sep 20 09:50:11 CDT 2024