|
|
|
Re: Run report in menu??? [message #528203 is a reply to message #528200] |
Sun, 23 October 2011 01:53 |
ranamirfan
Messages: 535 Registered: January 2006 Location: Pakistan / Saudi Arabia
|
Senior Member |
|
|
Dear,
Quote:
run_product(RUN_PRODUCT (REPORTS, 'f:\college\reports\resutl.rep', ASYNCHRONOUS, RUNTIME, FILESYSTEM, NULL);
Try this Sample code.
Declare
pl_id ParamList;
pl_name Varchar2(50) :='tempdata';
Begin
pl_id := Get_Parameter_List(pl_name);
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List(pl_id);
END IF;
pl_id := Create_Parameter_List(pl_name);
-- Pass Report Parameter
Add_Parameter(pl_id,'pono',TEXT_PARAMETER,:PO_header.po_no);
Add_Parameter(pl_id,'destype',TEXT_PARAMETER,'preview');
Run_Product(REPORTS, 'C:\PO.rep', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id,Null);
End;
Hope it'll help you.
Regards,
Irfan
|
|
|
|
|