export PDF from report directly

Amir picture Amir · Dec 27, 2010 · Viewed 7.4k times · Source

I use Oracle Report 6 for get my report, The problem is I want to get PDF export without displaying the report.I mean right now, I click on one button and make report (call a report from my Oracle form) then go to my report menu ->Generate to File -> PDF.

I dont want do this anymore... can I use any command from my form to export my report directly? I mean for example use some command to prepare report and get export in PDF automatically...

also if I can set the export file name and it's location when I try to generate PDF also can help me so much because I need to follow some rule for put name for my export files like use prefix and some digit and number....

What is your suggestion?

Answer

Manim picture Manim · Dec 29, 2010

You can do both request.

You have to create parameter and pass to run_product built-in

Syntax:

REPORT_DESTYPE: File, Printer, Mail, Cache   -- SET File
REPORT_FILENAME: The report filename (not used with CACHE)  -- Set your desirable file name format
REPORT_DESNAME: The report destination name (not used with Cache) -- 
REPORT_DESFORMAT: The report destination format  -- <HTML|HTMLCSS|PDF|RTF|XML|DELIMITED> set PDF

Sample parameter list: SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT, '');

I hope this help.

If you still need full details let me know, i'll add a sample procedure.