How to call a report from a form
I've created a report with Oracle Reports 10g and saved as MYREPORT.JSP and as MYREPORT.RDF
Than I've created a form and a button with a trigger when-button-pressed with this code:
declare
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
begin
repid := FIND_REPORT_OBJECT('D:\ORAFORMS\MYREPORT.JSP');
v_rep := RUN_REPORT_OBJECT(repid);
end;
If I run the form and then click the button created, instead of running the report, I get this message:
FRM-41219: Cannot find report: invalid ID
I use local OC4J Instance
Can you help me?
Thanks!