Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get print dialog box in forms 6.0.8.8.0 (6i)

MunishSep 11 2009 — edited Sep 14 2009
Hi,

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
This post has been answered by Magoo on Sep 11 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 12 2009
Added on Sep 11 2009
16 comments
1,458 views