Forms 6i [message #79924] |
Fri, 26 July 2002 02:35 |
Sukhoi
Messages: 4 Registered: June 2002
|
Junior Member |
|
|
greetings,
i am using forms 6i and reports 6i. i want to print a report from forms 6i on the button click idon't want the runtime preview screen. i tried the below coding. it might be very vague but don't know where exactly i had gone wrong.
declare
s number;
begin
s:=dbms_pipe.create_pipe('samp',8192,true);
s:=dbms_pipe.send_message('samp',86400,8192);
DBMS_PIPE.PACK_MESSAGE('r25run userid=dbo/dbodev@kcpdev report=U:Computer ServicessukhoiProj-D2kSupportformMailinglistR_Mailinglist.rdf destype=LPT1');
end;
can u give me where exactly i gone wrong??
is there any other way to take a print directly on the button click from the forms??
i need URGENTLY.
|
|
|
Re: Forms 6i [message #79927 is a reply to message #79924] |
Fri, 26 July 2002 04:28 |
kat
Messages: 15 Registered: February 2000
|
Junior Member |
|
|
Hi!
Yes you can directly print reports from forms. Use this procedure to set filename, output format or parameters etc.
SET_REPORT_OBJECT_PROPERTY()
with next function you start to generate the report:
RUN_REPORT_OBJECT()
For getting the whole properties read the help for both the procedure SET_REPORT_OBJECT_PROPERTY()and for the function RUN_REPORT_OBJECT()!
greetz kat
|
|
|