Skip to Main Content

DevOps, CI/CD and Automation

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

REP-0503 : You did not specify the name of a report.

429095Oct 26 2004 — edited Oct 26 2004
hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 23 2004
Added on Oct 26 2004
2 comments
301 views