Home » Developer & Programmer » Forms » How To Get Handle to the printer
How To Get Handle to the printer [message #87808] Mon, 14 February 2005 01:00 Go to next message
Shalini Kapoor
Messages: 6
Registered: February 2005
Junior Member
Hi to all

How do I get handle to a printer.
I need to print an ocx text file by clicking the button on the form.

Please help me.
Re: How To Get Handle to the printer [message #87820 is a reply to message #87808] Mon, 14 February 2005 23:31 Go to previous message
Himanshu
Messages: 457
Registered: December 2001
Senior Member
Hi,
You can use ORA_FFI package to call foreign C functions or WinAPI.

For obtain the Device Context of a printer, you can use CreateDC WinAPI function and you can call it through ORA_FFI package directly (without having external DLL).

Before drawing, you must call a lot of anothers functions: SetAbortProc, StartDoc and etc., but you can't call them through ORA_FFI package because they have parameters of structure type. You must write an external (foreign) function on C language to call them.

HTH
Regards
Himanshu
Previous Topic: Migrate forms 5.0 to forms 6i Document
Next Topic: hierachical tree node as selected
Goto Forum:
  


Current Time: Thu Sep 19 13:56:53 CDT 2024