|
Re: How To Get Handle to the printer [message #87820 is a reply to message #87808] |
Mon, 14 February 2005 23:31 |
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
|
|
|