REP-0503 : You did not specify the name of a report.
429095Oct 26 2004 — edited Oct 26 2004hi,
i am calling a report from the form on the when-button-pressed for that i have written the following code :
DECLARE
v_repid REPORT_OBJECT := find_report_object('dept_rep');
v_rep VARCHAR2(100);
BEGIN
IF :run_rep.destype = 'FILE'
THEN
set_report_object_property(v_repid, REPORT_DESFORMAT, 'PDF');
set_report_object_property(v_repid, REPORT_DESNAME,
'c:\dept_rep.pdf');
set_report_object_property(v_repid, REPORT_DESTYPE, FILE);
--
ELSE
set_report_object_property(v_repid, REPORT_DESFORMAT,
TO_CHAR(NULL));
set_report_object_property(v_repid, REPORT_DESNAME,
TO_CHAR(NULL));
set_report_object_property(v_repid, REPORT_DESTYPE, PREVIEW);
END IF;
--
v_rep := run_report_object(v_repid);
--
IF :run_rep.destype = 'FILE'
THEN
message('File has been written to C:\DEPT_REP.PDF');
message(' ');
END IF;
END;
when i run the form and click the button it is showing the following message:
REP-0503 : You did not specify the name of a report.
i am getting this message in the run_report_object and there i am sending the reportID. could any one give me the solution.
thanks for help