How to get print dialog box in forms 6.0.8.8.0 (6i)
MunishSep 11 2009 — edited Sep 14 2009Hi,
I want to get a print dialog box when button is pressed. To do that I need to use win_api_dialog.select_printer which I found in d2kwutil.pll library.
I created a simple form using developer 6.0.8.8.0.
I attached the lib d2kwutil.pll
I have the d2kwutil.pll in the directory where forms_path is pointing to in my registry.
There is only one block and one button on the form. Following is the code on the when button pressed trigger
declare
vcPrinter varchar2(200);
vcPort varchar2(200);
begin
win_api_dialog.select_printer(vcPrinter, vcPort,TRUE);
:PRI.PRI_PRINTER := vcPrinter;
:PRI.PRI_PORT := vcPort;
end;
When I run the form, the form compiles fine but I get
frm-40734 Internal error PL/SQL ERROR OCCURED.
Can you please tell me what should I look at or even step by step instructions as to how to get this working.?
Thanks
Munish